mirror of
https://github.com/ceph/go-ceph
synced 2024-12-22 06:10:09 +00:00
rados: add comment about missing pinning in writeStep
Signed-off-by: Sven Anderson <sven@redhat.com>
This commit is contained in:
parent
3a7f2e2896
commit
b5c4989a88
@ -25,7 +25,7 @@ type writeStep struct {
|
||||
func newWriteStep(b []byte, writeLen, offset uint64) *writeStep {
|
||||
return &writeStep{
|
||||
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)),
|
||||
cWriteLen: C.size_t(writeLen),
|
||||
cOffset: C.uint64_t(offset),
|
||||
|
Loading…
Reference in New Issue
Block a user