basho / riak-nodejs-client

The Riak client for Node.js.
Apache License 2.0
72 stars 29 forks source link

Vclock buffer returned by fetchValue still points to RiakConnection internal ByteBuffer memory [JIRA: CLIENTS-368] #45

Closed iproctor closed 9 years ago

iproctor commented 9 years ago

The vclock buffer from FetchValue is constructed with the non copying ByteBuffer.toBuffer method. Subsequent requests will use that same memory and overwrite the vclock. The symptom will be a garbage vclock at save time.

lukebakken commented 9 years ago

Docs: https://github.com/dcodeIO/ByteBuffer.js/wiki/API#bytebuffertobufferforcecopy