mirror of https://gitee.com/bigwinds/arangodb
Fix SingleCollectionTransaction in cluster case.
Collection ID lookup was not cluster ready.
This commit is contained in:
parent
bca482661a
commit
0c97d9652a
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue