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:
Max Kellermann
2017-08-24 19:49:54 +02:00
parent 7e76656a18
commit 28a2d41b85
11 changed files with 29 additions and 13 deletions

View File

@@ -138,6 +138,7 @@ try {
block.AddBlockParam("path", path->value.c_str(), path->line);
Database *db = plugin->create(init.GetEventLoop(),
init.GetEventLoop(),
database_listener, block);
AtScopeExit(db) { delete db; };