use the atomic integer counter to represent the size
This commit is contained in:
parent
267016758d
commit
6aa9be238c
|
@ -60,7 +60,7 @@ public class MemoryTranslog extends AbstractIndexShardComponent implements Trans
|
|||
}
|
||||
|
||||
@Override public int size() {
|
||||
return operations.size();
|
||||
return operationCounter.get();
|
||||
}
|
||||
|
||||
@Override public ByteSizeValue estimateMemorySize() {
|
||||
|
|
Loading…
Reference in New Issue