Update fdbclient/include/fdbclient/NativeAPI.actor.h

Co-authored-by: A.J. Beamon <aj.beamon@snowflake.com>
This commit is contained in:
Trevor Clinkenbeard 2022-09-27 09:45:05 -07:00 committed by GitHub
parent c70ec0ce1e
commit b7c9fb2ca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -562,7 +562,7 @@ ACTOR Future<bool> checkSafeExclusions(Database cx, std::vector<AddressExclusion
// Round up to the nearest page size
inline uint64_t getWriteOperationCost(uint64_t bytes) {
return (bytes - 1) / CLIENT_KNOBS->WRITE_COST_BYTE_FACTOR + CLIENT_KNOBS->WRITE_COST_BYTE_FACTOR;
return (bytes - 1) / CLIENT_KNOBS->WRITE_COST_BYTE_FACTOR + 1
}
// Create a transaction to set the value of system key \xff/conf/perpetual_storage_wiggle. If enable == true, the value