mirror of https://gitee.com/bigwinds/arangodb
Do not start up if replication failed
This commit is contained in:
parent
64ebfaa628
commit
4a2bb9716a
|
@ -55,7 +55,7 @@
|
||||||
var colls = db._collections();
|
var colls = db._collections();
|
||||||
colls = colls.filter(c => c.name()[0] === '_');
|
colls = colls.filter(c => c.name()[0] === '_');
|
||||||
if (!require('@arangodb/cluster').waitForSyncRepl('_system', colls)) {
|
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 {
|
} else {
|
||||||
global.ArangoAgency.set('SystemCollectionsCreated', true);
|
global.ArangoAgency.set('SystemCollectionsCreated', true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue