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:
John Brownlee 2024-08-20 20:44:34 -07:00 committed by GitHub
parent 7efbf9f041
commit 9c4ab5e879
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -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();