mirror of
https://github.com/ceph/ceph
synced 2025-02-18 00:17:37 +00:00
librbd: use RBD_GROUP_INVALID_POOL
Signed-off-by: Victor Denisov <denisovenator@gmail.com>
This commit is contained in:
parent
a5de40ab34
commit
68d70afbb1
@ -672,7 +672,7 @@ int Group<I>::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);
|
||||
|
Loading…
Reference in New Issue
Block a user