1
0
Fork 0

simplify and fix logic

This commit is contained in:
jsteemann 2016-04-26 21:31:35 +02:00
parent e2b296ddee
commit 9203013ef3
1 changed files with 3 additions and 4 deletions

View File

@ -1045,12 +1045,11 @@ int TRI_AddOperationTransaction(TRI_transaction_t* trx,
if (HasHint(trx, TRI_TRANSACTION_HINT_RECOVERY)) {
// turn off all waitForSync operations during recovery
waitForSync = false;
}
// upgrade the info for the transaction
if (!waitForSync) {
} else if (!waitForSync) {
// upgrade the info for the transaction based on the collection's settings
waitForSync |= document->_info.waitForSync();
}
if (waitForSync) {
trx->_waitForSync = true;
}