possibly incorrect use of Lucene OneMerge.totalBytesSize

fixes #2643
This commit is contained in:
Shay Banon 2013-02-12 22:09:47 +01:00
parent 3a2d40acd9
commit 5ad540a1aa
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ public class TrackingConcurrentMergeScheduler extends ConcurrentMergeScheduler {
@Override
protected void doMerge(MergePolicy.OneMerge merge) throws IOException {
int totalNumDocs = merge.totalNumDocs();
long totalSizeInBytes = merge.totalBytesSize();
long totalSizeInBytes = merge.estimatedMergeBytes;
long time = System.currentTimeMillis();
currentMerges.inc();
currentMergesNumDocs.inc(totalNumDocs);

View File

@ -88,7 +88,7 @@ public class TrackingSerialMergeScheduler extends MergeScheduler {
writer.mergeInit(merge);
int totalNumDocs = merge.totalNumDocs();
long totalSizeInBytes = merge.totalBytesSize();
long totalSizeInBytes = merge.estimatedMergeBytes;
long time = System.currentTimeMillis();
currentMerges.inc();
currentMergesNumDocs.inc(totalNumDocs);