1
0
Fork 0
This commit is contained in:
jsteemann 2017-10-26 14:56:52 +02:00
parent d684eaa7f8
commit a898af3723
1 changed files with 2 additions and 2 deletions

View File

@ -55,9 +55,9 @@ function checkReplicationFactor(name, fac) {
let shards = Object.values(current.arango.Current.Collections['_system'][collectionId]);
let finished = 0;
shards.forEach(entry => {
finished += entry.servers.length == fac ? 1 : 0;
finished += entry.servers.length === fac ? 1 : 0;
});
if (shards.length > 0 && finished == shards.length) {
if (shards.length > 0 && finished === shards.length) {
return;
}
internal.sleep(0.5);