summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/tenant_migration_access_blocker_registry.h
diff options
context:
space:
mode:
authorMartin Neupauer <xmaton@messengeruser.com>2021-05-04 14:46:37 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-05-05 17:19:34 +0000
commitebffbebedc594fae13719a784f4b5ca409da0b0b (patch)
tree808f598c18bc8a4e35833270fcd82faa4635cfc5 /src/mongo/db/repl/tenant_migration_access_blocker_registry.h
parentd628e4819eb75e4c9470cadadfdf062c3d2b0e5d (diff)
downloadmongo-ebffbebedc594fae13719a784f4b5ca409da0b0b.tar.gz
SERVER-56502 Sort triggers memory limit exceeded on only one version
The TopK sorter keeps track of how much memory it uses to hold the heap. As it is addind and removing rows from the heap it adds/subtracts the size of element from the total memory usage. The KeyString::Value::memUsageForSorter is unfortunately unstable, it can report different values at different times hence confusing the total memory usage (it caused underflow). The fix is to use a stable version KeyString::Value::getSize.
Diffstat (limited to 'src/mongo/db/repl/tenant_migration_access_blocker_registry.h')
0 files changed, 0 insertions, 0 deletions