Fix memory error caused by referencing a value with limited lifetime.
This commit is contained in:
parent
4867bad46e
commit
f0cdfb8781
|
@ -943,7 +943,7 @@ void determineCommittedTransactions(CommitBatchContext* self) {
|
|||
self->lockedKey = pProxyCommitData->txnStateStore->readValue(databaseLockedKey).get();
|
||||
self->locked = self->lockedKey.present() && self->lockedKey.get().size();
|
||||
|
||||
const auto& mustContainSystemKey = pProxyCommitData->txnStateStore->readValue(mustContainSystemMutationsKey).get();
|
||||
const Optional<Value> mustContainSystemKey = pProxyCommitData->txnStateStore->readValue(mustContainSystemMutationsKey).get();
|
||||
if (mustContainSystemKey.present() && mustContainSystemKey.get().size()) {
|
||||
for (int t = 0; t < trs.size(); t++) {
|
||||
if( self->committed[t] == ConflictBatch::TransactionCommitted ) {
|
||||
|
|
Loading…
Reference in New Issue