You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by la...@apache.org on 2013/09/18 08:29:17 UTC

svn commit: r1524304 - /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/wal/WALEdit.java

Author: larsh
Date: Wed Sep 18 06:29:16 2013
New Revision: 1524304

URL: http://svn.apache.org/r1524304
Log:
HBASE-9566 Add back WALEdit#get/setScopes method (Jesse)

Modified:
    hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/wal/WALEdit.java

Modified: hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/wal/WALEdit.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/wal/WALEdit.java?rev=1524304&r1=1524303&r2=1524304&view=diff
==============================================================================
--- hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/wal/WALEdit.java (original)
+++ hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/wal/WALEdit.java Wed Sep 18 06:29:16 2013
@@ -140,6 +140,26 @@ public class WALEdit implements Writable
     return scopes.get(key);
   }
 
+  /**
+   * @return the underlying replication scope map
+   * @deprecated use {@link #getFromScope(byte[])} instead
+   */
+  @Deprecated
+  public NavigableMap<byte[], Integer> getScopes() {
+    return scopes;
+  }
+
+  /**
+   * @param scopes set all the replication scope information. Must be non-<tt>null</tt>
+   * @deprecated use {@link #putIntoScope(byte[], Integer)} instead. This completely overrides any
+   *             existing scopes
+   */
+  @Deprecated
+  public void setScopes(NavigableMap<byte[], Integer> scopes) {
+    this.scopes.clear();
+    this.scopes.putAll(scopes);
+  }
+
   public void putIntoScope(byte[] key, Integer value) {
     scopes.put(key, value);
   }