]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-mirror: don't log error on empty pool
authorMykola Golub <mgolub@mirantis.com>
Sun, 6 Mar 2016 18:15:15 +0000 (20:15 +0200)
committerMykola Golub <mgolub@mirantis.com>
Mon, 7 Mar 2016 13:04:56 +0000 (15:04 +0200)
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/tools/rbd_mirror/PoolWatcher.cc

index a027f18dd782aed1d773a040750ee8f6c77bcff6..ea05584365dbb3641622fcc79270988937570564 100644 (file)
@@ -117,6 +117,8 @@ void PoolWatcher::refresh_images(bool reschedule)
       map<string, string> pool_images;
       r = dir_list(&ioctx, RBD_DIRECTORY,
                   last_read, max_read, &pool_images);
+      if (r == -ENOENT)
+       r = 0;
       if (r < 0) {
         derr << "error listing images in pool " << pool_name << ": "
             << cpp_strerror(r) << dendl;