summaryrefslogtreecommitdiff
path: root/src/command/StorageCommands.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-10-07 19:45:40 +0200
committerMax Kellermann <max@duempel.org>2014-10-09 07:45:25 +0200
commit3d2558bde6cebd6b628935f2852572cc7bb6eeab (patch)
treea2dcb1624f8d24cde3918c9ee955aae911c45417 /src/command/StorageCommands.cxx
parent1aac0b10c9499db77cbe39e43a0abc8cccc72079 (diff)
StoragePlugin: pass EventLoop to constructor
Diffstat (limited to 'src/command/StorageCommands.cxx')
-rw-r--r--src/command/StorageCommands.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/command/StorageCommands.cxx b/src/command/StorageCommands.cxx
index aeec73e1c..ee51c573e 100644
--- a/src/command/StorageCommands.cxx
+++ b/src/command/StorageCommands.cxx
@@ -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);