rbd: get mirror image status from correct array element

Signed-off-by: Daniel R <github@dann.me>
This commit is contained in:
DanWritesCode 2023-09-29 11:40:11 -04:00 committed by mergify[bot]
parent 9408dd5884
commit d5c981d9cb
1 changed files with 1 additions and 1 deletions

View File

@ -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],