From 81ff42253369a9f57118bd26b29115c86a1748c5 Mon Sep 17 00:00:00 2001 From: runsisi Date: Wed, 11 May 2016 20:42:37 +0800 Subject: [PATCH] rbd-mirror: librbd::mirror_peer_list never returns -ENOENT no need to check -ENOENT specially Signed-off-by: runsisi --- src/tools/rbd_mirror/ClusterWatcher.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/tools/rbd_mirror/ClusterWatcher.cc b/src/tools/rbd_mirror/ClusterWatcher.cc index cad29f17625..a08c4f50893 100644 --- a/src/tools/rbd_mirror/ClusterWatcher.cc +++ b/src/tools/rbd_mirror/ClusterWatcher.cc @@ -108,8 +108,6 @@ void ClusterWatcher::read_configs(map > *peer_configs, vector configs; r = librbd::mirror_peer_list(ioctx, &configs); - if (r == -ENOENT) - continue; // raced with disabling mirroring if (r < 0) { derr << "error reading mirroring config for pool " << pool_name << cpp_strerror(r) << dendl; -- 2.39.5