Account translog location to ram usage in version map

This commit accounts a translog location's ram usage in version map.
This commit is contained in:
Nhat Nguyen 2018-04-19 16:04:52 -04:00
parent a28c0d2271
commit 955709b3f3
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ final class IndexVersionValue extends VersionValue {
@Override
public long ramBytesUsed() {
return RAM_BYTES_USED;
return RAM_BYTES_USED + RamUsageEstimator.shallowSizeOf(translogLocation);
}
@Override