StoragePlugin: pass EventLoop to constructor

This commit is contained in:
Max Kellermann
2014-10-07 19:45:40 +02:00
parent 1aac0b10c9
commit 3d2558bde6
11 changed files with 31 additions and 15 deletions

View File

@@ -35,6 +35,7 @@
#include "db/plugins/simple/SimpleDatabasePlugin.hxx"
#include "db/update/Service.hxx"
#include "TimePrint.hxx"
#include "IOThread.hxx"
#include "Idle.hxx"
#include <inttypes.h> /* for PRIu64 */
@@ -121,7 +122,7 @@ CommandResult
handle_listfiles_storage(Client &client, const char *uri)
{
Error error;
Storage *storage = CreateStorageURI(uri, error);
Storage *storage = CreateStorageURI(io_thread_get(), uri, error);
if (storage == nullptr) {
if (error.IsDefined())
return print_error(client, error);
@@ -217,7 +218,8 @@ handle_mount(Client &client, gcc_unused unsigned argc, char *argv[])
}
Error error;
Storage *storage = CreateStorageURI(remote_uri, error);
Storage *storage = CreateStorageURI(io_thread_get(), remote_uri,
error);
if (storage == nullptr) {
if (error.IsDefined())
return print_error(client, error);