db/DatabasePlugin: pass EventThread's EventLoop to create()
Allows database plugins to use the EventThread, e.g. for CURL integration.
This commit is contained in:
@@ -193,7 +193,9 @@ static bool
|
||||
glue_db_init_and_load(void)
|
||||
{
|
||||
instance->database =
|
||||
CreateConfiguredDatabase(instance->event_loop, *instance);
|
||||
CreateConfiguredDatabase(instance->event_loop,
|
||||
instance->io_thread.GetEventLoop(),
|
||||
*instance);
|
||||
if (instance->database == nullptr)
|
||||
return true;
|
||||
|
||||
|
Reference in New Issue
Block a user