mirror of https://github.com/ceph/go-ceph
rbd: get mirror image status from correct array element
Signed-off-by: Daniel R <github@dann.me>
This commit is contained in:
parent
9408dd5884
commit
d5c981d9cb
|
@ -717,7 +717,7 @@ func mirrorImageGlobalStatusList(
|
|||
}
|
||||
for i := 0; i < int(length); i++ {
|
||||
results[i].ID = C.GoString(ids[i])
|
||||
results[i].Status = newGlobalMirrorImageStatus(&images[0])
|
||||
results[i].Status = newGlobalMirrorImageStatus(&images[i])
|
||||
}
|
||||
C.rbd_mirror_image_global_status_list_cleanup(
|
||||
&ids[0],
|
||||
|
|
Loading…
Reference in New Issue