1
0
Fork 0

additional error checking

This commit is contained in:
Andreas Streichardt 2017-01-09 10:01:07 +01:00
parent 11b83b762b
commit b51aebd596
1 changed files with 3 additions and 0 deletions

View File

@ -1229,6 +1229,9 @@ function scheduleOneShardSynchronization (database, shard, planId, leader) {
function synchronizeLocalFollowerCollections (plannedCollections,
currentCollections) {
if (typeof currentCollections != 'object') {
throw new Error('Current.Collections is not an object!');
}
var ourselves = global.ArangoServerState.id();
var db = require('internal').db;