cleanup: spell check getImageMirroingStatus

This commit corrects the spelling for
getImageMirroingStatus() -> getImageMirroringStatus

Signed-off-by: Yati Padia <ypadia@redhat.com>
This commit is contained in:
Yati Padia 2021-07-06 17:49:55 +05:30 committed by mergify[bot]
parent d941e5abac
commit f210d5758b
2 changed files with 3 additions and 3 deletions

View File

@ -127,8 +127,8 @@ type imageMirrorStatus struct {
} }
// FIXME: once https://github.com/ceph/go-ceph/issues/460 is fixed use go-ceph. // FIXME: once https://github.com/ceph/go-ceph/issues/460 is fixed use go-ceph.
// getImageMirroingStatus get the mirroring status of an image. // getImageMirroringStatus get the mirroring status of an image.
func (ri *rbdImage) getImageMirroingStatus() (*imageMirrorStatus, error) { func (ri *rbdImage) getImageMirroringStatus() (*imageMirrorStatus, error) {
// rbd mirror image status --format=json info [image-spec | snap-spec] // rbd mirror image status --format=json info [image-spec | snap-spec]
var imgStatus imageMirrorStatus var imgStatus imageMirrorStatus
stdout, stderr, err := util.ExecCommand( stdout, stderr, err := util.ExecCommand(

View File

@ -515,7 +515,7 @@ func (rs *ReplicationServer) ResyncVolume(ctx context.Context,
return nil, status.Error(codes.InvalidArgument, "image is in primary state") return nil, status.Error(codes.InvalidArgument, "image is in primary state")
} }
mirrorStatus, err := rbdVol.getImageMirroingStatus() mirrorStatus, err := rbdVol.getImageMirroringStatus()
if err != nil { if err != nil {
// the image gets recreated after issuing resync in that case return // the image gets recreated after issuing resync in that case return
// volume as not ready. // volume as not ready.