mirror of https://github.com/ceph/go-ceph
rbd: change instance_ids to instanceIDs
Fix up variable names that don't meet Go standards. This one crept in while working on older code but before the newer patch enabling revive to find these was available. Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
91efd1f092
commit
89c64b3100
|
@ -964,14 +964,14 @@ func mirrorImageInstanceIDList(ioctx *rados.IOContext, start string,
|
|||
max = C.size_t(len(results))
|
||||
length = C.size_t(0)
|
||||
ids = make([]*C.char, len(results))
|
||||
instance_ids = make([]*C.char, len(results))
|
||||
instanceIDs = make([]*C.char, len(results))
|
||||
)
|
||||
ret := C.rbd_mirror_image_instance_id_list(
|
||||
cephIoctx(ioctx),
|
||||
cStart,
|
||||
max,
|
||||
&ids[0],
|
||||
&instance_ids[0],
|
||||
&instanceIDs[0],
|
||||
&length,
|
||||
)
|
||||
if err := getError(ret); err != nil {
|
||||
|
@ -979,11 +979,11 @@ func mirrorImageInstanceIDList(ioctx *rados.IOContext, start string,
|
|||
}
|
||||
for i := 0; i < int(length); i++ {
|
||||
results[i].ID = C.GoString(ids[i])
|
||||
results[i].InstanceID = C.GoString(instance_ids[i])
|
||||
results[i].InstanceID = C.GoString(instanceIDs[i])
|
||||
}
|
||||
C.rbd_mirror_image_instance_id_list_cleanup(
|
||||
&ids[0],
|
||||
&instance_ids[0],
|
||||
&instanceIDs[0],
|
||||
length)
|
||||
return int(length), getError(ret)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue