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
|
@ -961,17 +961,17 @@ func mirrorImageInstanceIDList(ioctx *rados.IOContext, start string,
|
||||||
defer C.free(unsafe.Pointer(cStart))
|
defer C.free(unsafe.Pointer(cStart))
|
||||||
|
|
||||||
var (
|
var (
|
||||||
max = C.size_t(len(results))
|
max = C.size_t(len(results))
|
||||||
length = C.size_t(0)
|
length = C.size_t(0)
|
||||||
ids = make([]*C.char, len(results))
|
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(
|
ret := C.rbd_mirror_image_instance_id_list(
|
||||||
cephIoctx(ioctx),
|
cephIoctx(ioctx),
|
||||||
cStart,
|
cStart,
|
||||||
max,
|
max,
|
||||||
&ids[0],
|
&ids[0],
|
||||||
&instance_ids[0],
|
&instanceIDs[0],
|
||||||
&length,
|
&length,
|
||||||
)
|
)
|
||||||
if err := getError(ret); err != nil {
|
if err := getError(ret); err != nil {
|
||||||
|
@ -979,11 +979,11 @@ func mirrorImageInstanceIDList(ioctx *rados.IOContext, start string,
|
||||||
}
|
}
|
||||||
for i := 0; i < int(length); i++ {
|
for i := 0; i < int(length); i++ {
|
||||||
results[i].ID = C.GoString(ids[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(
|
C.rbd_mirror_image_instance_id_list_cleanup(
|
||||||
&ids[0],
|
&ids[0],
|
||||||
&instance_ids[0],
|
&instanceIDs[0],
|
||||||
length)
|
length)
|
||||||
return int(length), getError(ret)
|
return int(length), getError(ret)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue