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

This commit is contained in:
Weiwei Yang 2017-09-11 09:30:13 +08:00 committed by Owen O'Malley
parent f2d9360b9d
commit 3aa846412d
2 changed files with 0 additions and 17 deletions

View File

@ -124,13 +124,6 @@ public interface KSMMetadataManager {
*/ */
byte[] getDeletedKeyName(byte[] keyName); 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, * Given a volume, check if it is empty,
* i.e there are no buckets inside it. * i.e there are no buckets inside it.

View File

@ -166,16 +166,6 @@ public byte[] getDeletedKeyName(byte[] keyName) {
DELETING_KEY_PREFIX + DFSUtil.bytes2String(keyName)); 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. * Returns the read lock used on Metadata DB.
* @return readLock * @return readLock