From: Mykola Golub Date: Sun, 6 Mar 2016 18:15:15 +0000 (+0200) Subject: rbd-mirror: don't log error on empty pool X-Git-Tag: v10.1.0~186^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ed035a3bf3db70ed12e0b60315d5de8291fdb9a2;p=ceph.git rbd-mirror: don't log error on empty pool Signed-off-by: Mykola Golub --- diff --git a/src/tools/rbd_mirror/PoolWatcher.cc b/src/tools/rbd_mirror/PoolWatcher.cc index a027f18dd782..ea05584365db 100644 --- a/src/tools/rbd_mirror/PoolWatcher.cc +++ b/src/tools/rbd_mirror/PoolWatcher.cc @@ -117,6 +117,8 @@ void PoolWatcher::refresh_images(bool reschedule) map 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;