1
0
Fork 0

Fix potential race

This commit is contained in:
Andreas Streichardt 2016-12-07 13:37:24 +01:00
parent be3b23469c
commit c10f600ac7
1 changed files with 2 additions and 1 deletions

View File

@ -542,7 +542,8 @@ struct CoordinatorInstanciator : public WalkerWorker<ExecutionNode> {
// add the collection
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.close();
}