mirror of https://gitee.com/bigwinds/arangodb
Improve timings for hotbackup lock. (#10230)
This commit is contained in:
parent
e4e53b94ee
commit
ff28647627
|
@ -4169,7 +4169,7 @@ arangodb::Result hotBackupCoordinator(VPackSlice const payload, VPackBuilder& re
|
|||
}
|
||||
std::vector<ServerID> dbServers = ci->getCurrentDBServers();
|
||||
std::vector<ServerID> lockedServers;
|
||||
double lockWait(0.1);
|
||||
double lockWait(1);
|
||||
while (cc != nullptr && steady_clock::now() < end) {
|
||||
result = lockDBServerTransactions(backupId, dbServers, lockWait, lockedServers);
|
||||
if (!result.ok()) {
|
||||
|
@ -4182,10 +4182,10 @@ arangodb::Result hotBackupCoordinator(VPackSlice const payload, VPackBuilder& re
|
|||
} else {
|
||||
break;
|
||||
}
|
||||
if (lockWait < 30.0) {
|
||||
lockWait *= 1.25;
|
||||
if (lockWait < 3600.0) {
|
||||
lockWait *= 1.5;
|
||||
}
|
||||
std::this_thread::sleep_for(seconds(1));
|
||||
std::this_thread::sleep_for(milliseconds(300));
|
||||
}
|
||||
|
||||
bool gotLocks = result.ok();
|
||||
|
|
Loading…
Reference in New Issue