1
0
Fork 0

Do not start up if replication failed

This commit is contained in:
Andreas Streichardt 2017-02-08 16:18:20 +01:00
parent 64ebfaa628
commit 4a2bb9716a
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@
var colls = db._collections();
colls = colls.filter(c => c.name()[0] === '_');
if (!require('@arangodb/cluster').waitForSyncRepl('_system', colls)) {
console.error('System collections not properly set up. Starting anyway now...');
throw new Error('System collections not properly set up. Refusing startup!');
} else {
global.ArangoAgency.set('SystemCollectionsCreated', true);
}