hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ramkrishna.s.vasudevan (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HBASE-9761) Put copy constructor should clone the operation attributes also
Date Tue, 15 Oct 2013 07:41:42 GMT

    [ 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)

Mime
View raw message