Fix references to the wrong DB in the backup actor initialization. (#11588)
* Fix references to the wrong DB in the backup actor initialization. * Fix variable name. * Apply clang-format updates.
This commit is contained in:
parent
7efbf9f041
commit
9c4ab5e879
|
@ -4187,11 +4187,11 @@ int main(int argc, char* argv[]) {
|
|||
// enough for all cases to finish and 5 retries should also be good enough for
|
||||
// most cases.
|
||||
int64_t timeout = 60000;
|
||||
db->setOption(FDBDatabaseOptions::TRANSACTION_TIMEOUT,
|
||||
Optional<StringRef>(StringRef((const uint8_t*)&timeout, sizeof(timeout))));
|
||||
sourceDb->setOption(FDBDatabaseOptions::TRANSACTION_TIMEOUT,
|
||||
Optional<StringRef>(StringRef((const uint8_t*)&timeout, sizeof(timeout))));
|
||||
int64_t retryLimit = 5;
|
||||
db->setOption(FDBDatabaseOptions::TRANSACTION_RETRY_LIMIT,
|
||||
Optional<StringRef>(StringRef((const uint8_t*)&retryLimit, sizeof(retryLimit))));
|
||||
sourceDb->setOption(FDBDatabaseOptions::TRANSACTION_RETRY_LIMIT,
|
||||
Optional<StringRef>(StringRef((const uint8_t*)&retryLimit, sizeof(retryLimit))));
|
||||
}
|
||||
|
||||
return result.present();
|
||||
|
|
Loading…
Reference in New Issue