Skip to content

Commit

Permalink
Account translog location to ram usage in version map
Browse files Browse the repository at this point in the history
This commit accounts a translog location's ram usage in version map.
  • Loading branch information
dnhatn committed Apr 19, 2018
1 parent 7a62e6a commit 89179af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89179af

Please sign in to comment.