mirror of https://gitee.com/bigwinds/arangodb
Fix potential race
This commit is contained in:
parent
be3b23469c
commit
c10f600ac7
|
@ -542,7 +542,8 @@ struct CoordinatorInstanciator : public WalkerWorker<ExecutionNode> {
|
||||||
|
|
||||||
// add the collection
|
// add the collection
|
||||||
result.openObject();
|
result.openObject();
|
||||||
result.add("name", VPackValue((*auxiliaryCollection->shardIds())[0]));
|
auto auxiliaryShards = auxiliaryCollection->shardIds();
|
||||||
|
result.add("name", VPackValue((*auxiliaryShards)[0]));
|
||||||
result.add("type", VPackValue(TRI_TransactionTypeGetStr(collection->accessType)));
|
result.add("type", VPackValue(TRI_TransactionTypeGetStr(collection->accessType)));
|
||||||
result.close();
|
result.close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue