diff options
author | Martin Neupauer <xmaton@messengeruser.com> | 2021-05-04 14:46:37 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-05 17:19:34 +0000 |
commit | ebffbebedc594fae13719a784f4b5ca409da0b0b (patch) | |
tree | 808f598c18bc8a4e35833270fcd82faa4635cfc5 /src/mongo/db/repl/tenant_migration_access_blocker_registry.h | |
parent | d628e4819eb75e4c9470cadadfdf062c3d2b0e5d (diff) | |
download | mongo-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