Skip to content

Commit

Permalink
config: register LuaJIT VMs into the main context
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <eduardo@treasure-data.com>
  • Loading branch information
edsiper committed May 17, 2018
1 parent 462e930 commit 5409488
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/fluent-bit/flb_config.h
Expand Up @@ -159,6 +159,11 @@ struct flb_config {
struct mk_list sqldb_list;
#endif

/* LuaJIT environment's context */
#ifdef FLB_HAVE_LUAJIT
struct mk_list luajit_list;
#endif

/*
* Input table-id: table to keep a reference of thread-IDs used by the
* input plugins.
Expand Down
4 changes: 4 additions & 0 deletions src/flb_config.c
Expand Up @@ -132,6 +132,10 @@ struct flb_config *flb_config_init()
mk_list_init(&config->sqldb_list);
#endif

#ifdef FLB_HAVE_LUAJIT
mk_list_init(&config->luajit_list);
#endif

mk_list_init(&config->collectors);
mk_list_init(&config->in_plugins);
mk_list_init(&config->parser_plugins);
Expand Down

0 comments on commit 5409488

Please sign in to comment.