HBASE-6623 [replication] replication metrics value AgeOfLastShippedOp is not set correctly

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1377038 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2012-08-24 18:44:53 +00:00
parent 07218cb039
commit 2e0e23eb98
1 changed files with 1 additions and 1 deletions

View File

@ -621,7 +621,7 @@ public class ReplicationSource extends Thread
this.totalReplicatedEdits += currentNbEntries;
this.metrics.shipBatch(this.currentNbOperations);
this.metrics.setAgeOfLastShippedOp(
this.entriesArray[this.entriesArray.length-1].getKey().getWriteTime());
this.entriesArray[currentNbEntries-1].getKey().getWriteTime());
LOG.debug("Replicated in total: " + this.totalReplicatedEdits);
break;