mirror of https://gitee.com/bigwinds/arangodb
Fix simlpe queries in cluster: Only the coordinator needs to look up shards, the DBservers don't do this.
This commit is contained in:
parent
a3b026d9d1
commit
b64260b553
|
@ -45,7 +45,7 @@ var checkShards = function(req, collection) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var cluster = require("@arangodb/cluster");
|
var cluster = require("@arangodb/cluster");
|
||||||
if (! cluster.isCluster()) {
|
if (! cluster.isCoordinator()) {
|
||||||
// no cluster
|
// no cluster
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue