Skip to content

Commit

Permalink
rados: add comment about missing pinning in writeStep
Browse files Browse the repository at this point in the history
Signed-off-by: Sven Anderson <[email protected]>
  • Loading branch information
ansiwen authored and mergify[bot] committed Nov 15, 2021
1 parent 3a7f2e2 commit b5c4989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rados/write_step.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit b5c4989

Please sign in to comment.