use the atomic integer counter to represent the size

This commit is contained in:
kimchy 2010-07-06 18:45:19 +03:00
parent 267016758d
commit 6aa9be238c
1 changed files with 1 additions and 1 deletions

View File

@ -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() {