Skip to content

Commit 68d38b7

Browse files
committed
engine: define constant for config context event loop.
Signed-off-by: Phillip Adair Stewart Whelan <phillip.whelan@chronosphere.io>
1 parent 18b1f8f commit 68d38b7

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

include/fluent-bit/flb_config.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
#define FLB_CONFIG_DEFAULT_TASK_MAP_SIZE 2048
4242
#define FLB_CONFIG_DEFAULT_TASK_MAP_SIZE_LIMIT 16384
4343
#define FLB_CONFIG_DEFAULT_TASK_MAP_SIZE_GROWTH_SiZE 256
44+
#define FLB_CONFIG_EVENT_LOOP_SIZE 8
4445

4546
/* The reason behind FLB_CONFIG_DEFAULT_TASK_MAP_SIZE_LIMIT being set to 16384
4647
* is that this is largest unsigned number expressable with 14 bits which is

src/flb_engine.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ int flb_engine_start(struct flb_config *config)
724724
*
725725
*/
726726
/* Create the event loop and set it in the global configuration */
727-
config->ctx_evl = mk_event_loop_create(8);
727+
config->ctx_evl = mk_event_loop_create(FLB_CONFIG_EVENT_LOOP_SIZE);
728728
if (!config->ctx_evl) {
729729
fprintf(stderr, "[log] could not create context event loop\n");
730730
return -1;

0 commit comments

Comments
 (0)