Update fdbserver/TransactionTagCounter.cpp

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

View File

@ -92,7 +92,7 @@ class TransactionTagCounterImpl {
// Round up to the nearest page size
static int64_t costFunction(int64_t bytes) {
return (bytes - 1) / CLIENT_KNOBS->READ_COST_BYTE_FACTOR + CLIENT_KNOBS->READ_COST_BYTE_FACTOR;
return (bytes - 1) / CLIENT_KNOBS->READ_COST_BYTE_FACTOR + 1;
}
public: