We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2b3d47 commit 76c983bCopy full SHA for 76c983b
src/flb_engine.c
@@ -946,7 +946,8 @@ int flb_engine_start(struct flb_config *config)
946
947
ret = sb_segregate_chunks(config);
948
949
- if (ret) {
+ if (ret < 0)
950
+ {
951
flb_error("[engine] could not segregate backlog chunks");
952
return -2;
953
}
@@ -1023,6 +1024,11 @@ int flb_engine_start(struct flb_config *config)
1023
1024
if (ret > 0 && (config->grace_count < config->grace || config->grace == -1)) {
1025
if (config->grace_count == 1) {
1026
flb_task_running_print(config);
1027
+ ret = sb_segregate_chunks(config);
1028
+ if (ret < 0) {
1029
+ flb_error("[engine] could not segregate backlog chunks");
1030
+ return -2;
1031
+ }
1032
1033
flb_engine_exit(config);
1034
0 commit comments