From b64260b553aa9afefc3ac347b5d1bb68a8c17863 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Wed, 6 Jan 2016 15:54:56 +0100 Subject: [PATCH] Fix simlpe queries in cluster: Only the coordinator needs to look up shards, the DBservers don't do this. --- js/actions/api-simple.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/actions/api-simple.js b/js/actions/api-simple.js index 03159377c3..85d6220028 100644 --- a/js/actions/api-simple.js +++ b/js/actions/api-simple.js @@ -45,7 +45,7 @@ var checkShards = function(req, collection) { } var cluster = require("@arangodb/cluster"); - if (! cluster.isCluster()) { + if (! cluster.isCoordinator()) { // no cluster return true; }