diff --git a/arangod/Utils/ExplicitTransaction.h b/arangod/Utils/ExplicitTransaction.h index d556b5ece4..b40d2abb06 100644 --- a/arangod/Utils/ExplicitTransaction.h +++ b/arangod/Utils/ExplicitTransaction.h @@ -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); - } } //////////////////////////////////////////////////////////////////////////////