mirror of
https://github.com/ceph/ceph
synced 2025-01-04 02:02:36 +00:00
Merge pull request #9541 from renhwztetecs/renhw-wip-rbd
rbd: cleanup unnecessary switch breaks Reviewed-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
commit
7c9cea0c59
@ -674,28 +674,20 @@ std::string mirror_image_status_state(librbd::mirror_image_status_state_t state)
|
||||
switch (state) {
|
||||
case MIRROR_IMAGE_STATUS_STATE_UNKNOWN:
|
||||
return "unknown";
|
||||
break;
|
||||
case MIRROR_IMAGE_STATUS_STATE_ERROR:
|
||||
return "error";
|
||||
break;
|
||||
case MIRROR_IMAGE_STATUS_STATE_SYNCING:
|
||||
return "syncing";
|
||||
break;
|
||||
case MIRROR_IMAGE_STATUS_STATE_STARTING_REPLAY:
|
||||
return "starting_replay";
|
||||
break;
|
||||
case MIRROR_IMAGE_STATUS_STATE_REPLAYING:
|
||||
return "replaying";
|
||||
break;
|
||||
case MIRROR_IMAGE_STATUS_STATE_STOPPING_REPLAY:
|
||||
return "stopping_replay";
|
||||
break;
|
||||
case MIRROR_IMAGE_STATUS_STATE_STOPPED:
|
||||
return "stopped";
|
||||
break;
|
||||
default:
|
||||
return "unknown (" + stringify(static_cast<uint32_t>(state)) + ")";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user