WriteTransaction: Fix memory corruption issue

Review Request #125431 - Created Sept. 27, 2015 and discarded

Information
Vishesh Handa
baloo
Reviewers
baloo

WriteTransaction: Fix memory corruption issue

In both these functions the QByteArrays are allocated from
QByteArray::fromRawData so that we avoid copies. They come from the LMDB
db which guarentees the memory will not be discarded as long as we are
using it. Unfortunately for us, we mark it for remove in removeTerms and
replaceTerms after this call, so LMDB is free to reuse that memory, and
it probably does.

We should ideally replace QByteArray with our ByteArray class.

This does not fix all our issues. We still have problems.


  
Vishesh Handa
Vishesh Handa
Review request changed

Status: Discarded

Loading...