mirror of https://gitee.com/bigwinds/arangodb
additional error checking
This commit is contained in:
parent
11b83b762b
commit
b51aebd596
|
@ -1229,6 +1229,9 @@ function scheduleOneShardSynchronization (database, shard, planId, leader) {
|
||||||
|
|
||||||
function synchronizeLocalFollowerCollections (plannedCollections,
|
function synchronizeLocalFollowerCollections (plannedCollections,
|
||||||
currentCollections) {
|
currentCollections) {
|
||||||
|
if (typeof currentCollections != 'object') {
|
||||||
|
throw new Error('Current.Collections is not an object!');
|
||||||
|
}
|
||||||
var ourselves = global.ArangoServerState.id();
|
var ourselves = global.ArangoServerState.id();
|
||||||
|
|
||||||
var db = require('internal').db;
|
var db = require('internal').db;
|
||||||
|
|
Loading…
Reference in New Issue