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:
parent
c610e59c0d
commit
743e2fbed9
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue