HDFS-12397. Ozone: KSM: multiple delete methods in KSMMetadataManager. Contributed by Nandakumar.
This commit is contained in:
parent
f2d9360b9d
commit
3aa846412d
|
@ -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.
|
||||||
|
|
|
@ -166,16 +166,6 @@ public class KSMMetadataManagerImpl implements KSMMetadataManager {
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue