Correct format

This commit is contained in:
Johannes M. Scheuermann 2024-05-14 14:57:41 +02:00
parent 38b6540352
commit 32c0b007d8
1 changed files with 8 additions and 4 deletions

View File

@ -4145,8 +4145,10 @@ int main(int argc, char* argv[]) {
// where the fdbbackup command hangs infinitely. 60 seconds should be more than
// enough for all cases to finish and 5 retries should also be good enough for
// most cases.
db->setOption(FDBDatabaseOptions::TRANSACTION_TIMEOUT, Optional<StringRef>(StringRef((const uint8_t*)60000, 8)));
db->setOption(FDBDatabaseOptions::TRANSACTION_RETRY_LIMIT, Optional<StringRef>(StringRef((const uint8_t*)5, 8)));
db->setOption(FDBDatabaseOptions::TRANSACTION_TIMEOUT,
Optional<StringRef>(StringRef((const uint8_t*)60000, 8)));
db->setOption(FDBDatabaseOptions::TRANSACTION_RETRY_LIMIT,
Optional<StringRef>(StringRef((const uint8_t*)5, 8)));
}
return result.present();
@ -4167,8 +4169,10 @@ int main(int argc, char* argv[]) {
// where the fdbbackup command hangs infinitely. 60 seconds should be more than
// enough for all cases to finish and 5 retries should also be good enough for
// most cases.
sourceDb->setOption(FDBDatabaseOptions::TRANSACTION_TIMEOUT, Optional<StringRef>(StringRef((const uint8_t*)60000, 8)));
sourceDb->setOption(FDBDatabaseOptions::TRANSACTION_RETRY_LIMIT, Optional<StringRef>(StringRef((const uint8_t*)5, 8)));
sourceDb->setOption(FDBDatabaseOptions::TRANSACTION_TIMEOUT,
Optional<StringRef>(StringRef((const uint8_t*)60000, 8)));
sourceDb->setOption(FDBDatabaseOptions::TRANSACTION_RETRY_LIMIT,
Optional<StringRef>(StringRef((const uint8_t*)5, 8)));
}
return result.present();