From 3d2558bde6cebd6b628935f2852572cc7bb6eeab Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 7 Oct 2014 19:45:40 +0200 Subject: StoragePlugin: pass EventLoop to constructor --- test/run_storage.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/run_storage.cxx') diff --git a/test/run_storage.cxx b/test/run_storage.cxx index 45575b9e0..9fc6e6e76 100644 --- a/test/run_storage.cxx +++ b/test/run_storage.cxx @@ -18,6 +18,7 @@ */ #include "config.h" +#include "ScopeIOThread.hxx" #include "storage/Registry.hxx" #include "storage/StorageInterface.hxx" #include "storage/FileInfo.hxx" @@ -38,7 +39,7 @@ static Storage * MakeStorage(const char *uri) { Error error; - Storage *storage = CreateStorageURI(uri, error); + Storage *storage = CreateStorageURI(io_thread_get(), uri, error); if (storage == nullptr) { fprintf(stderr, "%s\n", error.GetMessage()); exit(EXIT_FAILURE); @@ -112,6 +113,8 @@ main(int argc, char **argv) const char *const command = argv[1]; const char *const storage_uri = argv[2]; + const ScopeIOThread io_thread; + if (strcmp(command, "ls") == 0) { if (argc != 4) { fprintf(stderr, "Usage: run_storage ls URI PATH\n"); -- cgit v1.2.3