rados: add comment about missing pinning in writeStep

Signed-off-by: Sven Anderson <sven@redhat.com>
This commit is contained in:
Sven Anderson 2021-11-16 00:28:50 +09:00 committed by mergify[bot]
parent 3a7f2e2896
commit b5c4989a88
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ type writeStep struct {
func newWriteStep(b []byte, writeLen, offset uint64) *writeStep { func newWriteStep(b []byte, writeLen, offset uint64) *writeStep {
return &writeStep{ return &writeStep{
b: b, b: b,
cBuffer: (*C.char)(unsafe.Pointer(&b[0])), cBuffer: (*C.char)(unsafe.Pointer(&b[0])), // TODO: must be pinned
cDataLen: C.size_t(len(b)), cDataLen: C.size_t(len(b)),
cWriteLen: C.size_t(writeLen), cWriteLen: C.size_t(writeLen),
cOffset: C.uint64_t(offset), cOffset: C.uint64_t(offset),