Repository: hadoop
Updated Branches:
  refs/heads/HDFS-7240 e319be93b -> a73531be1


HDFS-12397. Ozone: KSM: multiple delete methods in KSMMetadataManager. 
Contributed by Nandakumar.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/a73531be
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/a73531be
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/a73531be

Branch: refs/heads/HDFS-7240
Commit: a73531be1ec3015366041540a77bff3c20c60608
Parents: e319be9
Author: Weiwei Yang <[email protected]>
Authored: Mon Sep 11 09:30:13 2017 +0800
Committer: Weiwei Yang <[email protected]>
Committed: Mon Sep 11 09:30:13 2017 +0800

----------------------------------------------------------------------
 .../org/apache/hadoop/ozone/ksm/KSMMetadataManager.java   |  7 -------
 .../apache/hadoop/ozone/ksm/KSMMetadataManagerImpl.java   | 10 ----------
 2 files changed, 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/a73531be/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/ksm/KSMMetadataManager.java
----------------------------------------------------------------------
diff --git 
a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/ksm/KSMMetadataManager.java
 
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/ksm/KSMMetadataManager.java
index fe93718..1027bd4 100644
--- 
a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/ksm/KSMMetadataManager.java
+++ 
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/ksm/KSMMetadataManager.java
@@ -125,13 +125,6 @@ public interface KSMMetadataManager {
   byte[] getDeletedKeyName(byte[] keyName);
 
   /**
-   * Deletes the key from DB.
-   *
-   * @param key - key name
-   */
-  void deleteKey(byte[] key) throws IOException;
-
-  /**
    * Given a volume, check if it is empty,
    * i.e there are no buckets inside it.
    * @param volume - Volume name

http://git-wip-us.apache.org/repos/asf/hadoop/blob/a73531be/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/ksm/KSMMetadataManagerImpl.java
----------------------------------------------------------------------
diff --git 
a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/ksm/KSMMetadataManagerImpl.java
 
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/ksm/KSMMetadataManagerImpl.java
index b954685..e3b3db2 100644
--- 
a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/ksm/KSMMetadataManagerImpl.java
+++ 
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/ksm/KSMMetadataManagerImpl.java
@@ -167,16 +167,6 @@ public class KSMMetadataManagerImpl implements 
KSMMetadataManager {
   }
 
   /**
-   * Deletes the key on Metadata DB.
-   *
-   * @param key - key name
-   */
-  @Override
-  public void deleteKey(byte[] key) throws IOException {
-    store.delete(key);
-  }
-
-  /**
    * Returns the read lock used on Metadata DB.
    * @return readLock
    */


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to