From 68d70afbb196380fd06ba304a3aeaeaabb3d5d46 Mon Sep 17 00:00:00 2001 From: Victor Denisov Date: Fri, 29 Dec 2017 20:20:19 -0800 Subject: [PATCH] librbd: use RBD_GROUP_INVALID_POOL Signed-off-by: Victor Denisov --- src/librbd/api/Group.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librbd/api/Group.cc b/src/librbd/api/Group.cc index 3350e684b46..283250b250e 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); -- 2.39.5