1
0
Fork 0

add write collections before read collections

This commit is contained in:
Jan Steemann 2016-06-29 11:10:27 +02:00
parent bafb352698
commit 0fea8cc711
1 changed files with 8 additions and 8 deletions

View File

@ -58,14 +58,14 @@ class ExplicitTransaction : public Transaction {
}
this->setAllowImplicitCollections(allowImplicitCollections);
for (auto const& it : writeCollections) {
this->addCollection(it, TRI_TRANSACTION_WRITE);
}
for (auto const& it : readCollections) {
this->addCollection(it, TRI_TRANSACTION_READ);
}
for (auto const& it : writeCollections) {
this->addCollection(it, TRI_TRANSACTION_WRITE);
}
}
//////////////////////////////////////////////////////////////////////////////
@ -86,14 +86,14 @@ class ExplicitTransaction : public Transaction {
if (waitForSync) {
this->setWaitForSync();
}
for (auto const& it : writeCollections) {
this->addCollection(it, TRI_TRANSACTION_WRITE);
}
for (auto const& it : readCollections) {
this->addCollection(it, TRI_TRANSACTION_READ);
}
for (auto const& it : writeCollections) {
this->addCollection(it, TRI_TRANSACTION_WRITE);
}
}
//////////////////////////////////////////////////////////////////////////////