From: Victor Denisov Date: Sat, 30 Dec 2017 04:20:19 +0000 (-0800) Subject: librbd: use RBD_GROUP_INVALID_POOL X-Git-Tag: v13.0.2~545^2~28 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=68d70afbb196380fd06ba304a3aeaeaabb3d5d46;p=ceph.git librbd: use RBD_GROUP_INVALID_POOL Signed-off-by: Victor Denisov --- diff --git a/src/librbd/api/Group.cc b/src/librbd/api/Group.cc index 3350e684b467..283250b250ed 100644 --- a/src/librbd/api/Group.cc +++ b/src/librbd/api/Group.cc @@ -672,7 +672,7 @@ int Group::image_get_group(I *ictx, group_spec_t *group_spec) if (r < 0) return r; - if (-1 != ictx->group_spec.pool_id) { + if (RBD_GROUP_INVALID_POOL != ictx->group_spec.pool_id) { librados::Rados rados(ictx->md_ctx); IoCtx ioctx; r = rados.ioctx_create2(ictx->group_spec.pool_id, ioctx);