HBASE-9761 Put copy constructor should clone the operation attributes also

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1532663 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
anoopsamjohn 2013-10-16 07:29:47 +00:00
parent c610e59c0d
commit 743e2fbed9
2 changed files with 6 additions and 0 deletions

View File

@ -100,6 +100,9 @@ public class Put extends Mutation implements HeapSize, Comparable<Row> {
this.familyMap.put(entry.getKey(), entry.getValue());
}
this.durability = putToCopy.durability;
for (Map.Entry<String, byte[]> entry : putToCopy.getAttributesMap().entrySet()) {
this.setAttribute(entry.getKey(), entry.getValue());
}
}
/**

View File

@ -222,6 +222,9 @@ public class Scan extends OperationWithAttributes {
this.tr = get.getTimeRange();
this.familyMap = get.getFamilyMap();
this.getScan = true;
for (Map.Entry<String, byte[]> attr : get.getAttributesMap().entrySet()) {
setAttribute(attr.getKey(), attr.getValue());
}
}
public boolean isGetScan() {