You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org> on 2013/10/15 09:41:42 UTC

[jira] [Comment Edited] (HBASE-9761) Put copy constructor should clone the operation attributes also

    [ https://issues.apache.org/jira/browse/HBASE-9761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13794964#comment-13794964 ] 

ramkrishna.s.vasudevan edited comment on HBASE-9761 at 10/15/13 7:39 AM:
-------------------------------------------------------------------------

Just check for null and then add the code
{code}
+    for (Map.Entry<String, byte[]> entry : putToCopy.getAttributesMap().entrySet()) {
+      this.setAttribute(entry.getKey(), entry.getValue());
+    }
{code} 
{Edit}
Not needed.  Internally it returns an empty map.  So +1 stands.
{Edit}


was (Author: ram_krish):
Just check for null and then add the code
{code}
+    for (Map.Entry<String, byte[]> entry : putToCopy.getAttributesMap().entrySet()) {
+      this.setAttribute(entry.getKey(), entry.getValue());
+    }
{code} 


> Put copy constructor should clone the operation attributes also
> ---------------------------------------------------------------
>
>                 Key: HBASE-9761
>                 URL: https://issues.apache.org/jira/browse/HBASE-9761
>             Project: HBase
>          Issue Type: Bug
>          Components: Client
>    Affects Versions: 0.98.0, 0.95.2, 0.94.12, 0.96.0
>            Reporter: Anoop Sam John
>            Assignee: Anoop Sam John
>         Attachments: HBASE-9761_Trunk.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.1#6144)