From e3ee60e7af64819530440c5a651ab76f56f29bbe Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 25 Feb 2017 10:16:51 +0100 Subject: [PATCH] command/storage: use Instance::EmitIdle() These events are relevant for all partitions. --- src/command/StorageCommands.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/command/StorageCommands.cxx b/src/command/StorageCommands.cxx index 2eaba21b3..5ea53fd67 100644 --- a/src/command/StorageCommands.cxx +++ b/src/command/StorageCommands.cxx @@ -206,7 +206,7 @@ handle_mount(Client &client, Request args, Response &r) } composite.Mount(local_uri, storage); - client.partition.EmitIdle(IDLE_MOUNT); + instance.EmitIdle(IDLE_MOUNT); #ifdef ENABLE_DATABASE Database *_db = instance.database; @@ -222,7 +222,7 @@ handle_mount(Client &client, Request args, Response &r) // TODO: call Instance::OnDatabaseModified()? // TODO: trigger database update? - client.partition.EmitIdle(IDLE_DATABASE); + instance.EmitIdle(IDLE_DATABASE); } #endif @@ -262,7 +262,7 @@ handle_unmount(Client &client, Request args, Response &r) if (db.Unmount(local_uri)) // TODO: call Instance::OnDatabaseModified()? - client.partition.EmitIdle(IDLE_DATABASE); + instance.EmitIdle(IDLE_DATABASE); } #endif @@ -271,7 +271,7 @@ handle_unmount(Client &client, Request args, Response &r) return CommandResult::ERROR; } - client.partition.EmitIdle(IDLE_MOUNT); + instance.EmitIdle(IDLE_MOUNT); return CommandResult::OK; }