1
0
Fork 0

Fix SingleCollectionTransaction in cluster case.

Collection ID lookup was not cluster ready.
This commit is contained in:
Max Neunhoeffer 2016-02-19 12:19:35 +01:00
parent bca482661a
commit 0c97d9652a
1 changed files with 5 additions and 1 deletions

View File

@ -70,7 +70,11 @@ class SingleCollectionTransaction : public Transaction {
_accessType(accessType) {
// add the (sole) collection
if (setupState() == TRI_ERROR_NO_ERROR) {
_cid = this->resolver()->getCollectionId(name);
if (ServerState::instance()->isCoordinator()) {
_cid = this->resolver()->getCollectionIdCluster(name);
} else {
_cid = this->resolver()->getCollectionId(name);
}
this->addCollection(_cid, _accessType);
}