mirror of
https://github.com/ceph/ceph
synced 2024-12-28 22:43:29 +00:00
librbd: corrected error code from image_snapshot_create API
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
parent
c3c580647a
commit
00a354859f
@ -1860,7 +1860,7 @@ int Mirror<I>::image_snapshot_create(I *ictx, uint64_t *snap_id) {
|
||||
if (mirror_image.mode != cls::rbd::MIRROR_IMAGE_MODE_SNAPSHOT ||
|
||||
mirror_image.state != cls::rbd::MIRROR_IMAGE_STATE_ENABLED) {
|
||||
lderr(cct) << "snapshot based mirroring is not enabled" << dendl;
|
||||
return r;
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
C_SaferCond on_finish;
|
||||
|
Loading…
Reference in New Issue
Block a user