HBASE-2284 fsWriteLatency metric may be incorrectly reported

(missing a fix for replication)


git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@919136 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jean-Daniel Cryans 2010-03-04 19:13:29 +00:00
parent 6db73b1c8d
commit b3f302c30c
1 changed files with 2 additions and 2 deletions

View File

@ -67,10 +67,10 @@ public class ReplicationHLog extends HLog {
@Override
protected void doWrite(HRegionInfo info, HLogKey logKey,
KeyValue logEdit, long now)
KeyValue logEdit)
throws IOException {
logKey.setScope(info.getTableDesc().getFamily(logEdit.getFamily()).getScope());
super.doWrite(info, logKey, logEdit, now);
super.doWrite(info, logKey, logEdit);
if(this.isReplicator && ! (info.isMetaRegion() || info.isRootRegion()) &&
logKey.getScope() == HConstants.REPLICATION_SCOPE_GLOBAL) {
this.replicationSource.enqueueLog(new Entry(logKey, logEdit));