mirror of https://gitee.com/bigwinds/arangodb
add write collections before read collections
This commit is contained in:
parent
bafb352698
commit
0fea8cc711
|
@ -59,13 +59,13 @@ class ExplicitTransaction : public Transaction {
|
|||
|
||||
this->setAllowImplicitCollections(allowImplicitCollections);
|
||||
|
||||
for (auto const& it : readCollections) {
|
||||
this->addCollection(it, TRI_TRANSACTION_READ);
|
||||
}
|
||||
|
||||
for (auto const& it : writeCollections) {
|
||||
this->addCollection(it, TRI_TRANSACTION_WRITE);
|
||||
}
|
||||
|
||||
for (auto const& it : readCollections) {
|
||||
this->addCollection(it, TRI_TRANSACTION_READ);
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -87,13 +87,13 @@ class ExplicitTransaction : public Transaction {
|
|||
this->setWaitForSync();
|
||||
}
|
||||
|
||||
for (auto const& it : readCollections) {
|
||||
this->addCollection(it, TRI_TRANSACTION_READ);
|
||||
}
|
||||
|
||||
for (auto const& it : writeCollections) {
|
||||
this->addCollection(it, TRI_TRANSACTION_WRITE);
|
||||
}
|
||||
|
||||
for (auto const& it : readCollections) {
|
||||
this->addCollection(it, TRI_TRANSACTION_READ);
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue