From 3aa846412d1fa443f887ba5084053df11c24f423 Mon Sep 17 00:00:00 2001 From: Weiwei Yang Date: Mon, 11 Sep 2017 09:30:13 +0800 Subject: [PATCH] HDFS-12397. Ozone: KSM: multiple delete methods in KSMMetadataManager. Contributed by Nandakumar. --- .../apache/hadoop/ozone/ksm/KSMMetadataManager.java | 7 ------- .../hadoop/ozone/ksm/KSMMetadataManagerImpl.java | 10 ---------- 2 files changed, 17 deletions(-) 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 fe93718292b..1027bd4211a 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 @@ -124,13 +124,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. 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 b954685efa3..e3b3db204cd 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 @@ -166,16 +166,6 @@ public class KSMMetadataManagerImpl implements KSMMetadataManager { DELETING_KEY_PREFIX + DFSUtil.bytes2String(keyName)); } - /** - * 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