Skip to content

Commit

Permalink
rbd: get mirror image status from correct array element
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel R <[email protected]>
  • Loading branch information
diffs authored and mergify[bot] committed Oct 2, 2023
1 parent 9408dd5 commit d5c981d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rbd/mirror.go
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit d5c981d

Please sign in to comment.