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:
parent
6db73b1c8d
commit
b3f302c30c
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue