File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -950,7 +950,8 @@ int flb_engine_start(struct flb_config *config)
950
950
951
951
ret = sb_segregate_chunks (config );
952
952
953
- if (ret ) {
953
+ if (ret < 0 )
954
+ {
954
955
flb_error ("[engine] could not segregate backlog chunks" );
955
956
return -2 ;
956
957
}
@@ -1035,6 +1036,11 @@ int flb_engine_start(struct flb_config *config)
1035
1036
if (ret > 0 && (config -> grace_count < config -> grace || config -> grace == -1 )) {
1036
1037
if (config -> grace_count == 1 ) {
1037
1038
flb_task_running_print (config );
1039
+ ret = sb_segregate_chunks (config );
1040
+ if (ret < 0 ) {
1041
+ flb_error ("[engine] could not segregate backlog chunks" );
1042
+ return -2 ;
1043
+ }
1038
1044
}
1039
1045
if ((mem_chunks + fs_chunks ) > 0 ) {
1040
1046
flb_info ("[engine] pending chunk count: memory=%d, filesystem=%d; grace_timer=%d" ,
You can’t perform that action at this time.
0 commit comments