HDFS-17076. Remove the unused method isSlownodeByNameserviceId in DataNode (#5824). Contributed by Haiyang Hu.

Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
This commit is contained in:
huhaiyang 2023-07-11 15:46:06 +08:00 committed by GitHub
parent a822a3c70b
commit 4e699f0383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 11 deletions

View File

@ -308,13 +308,6 @@ Map<String, BPOfferService> getBpByNameserviceId() {
return bpByNameserviceId; return bpByNameserviceId;
} }
boolean isSlownodeByNameserviceId(String nsId) {
if (bpByNameserviceId.containsKey(nsId)) {
return bpByNameserviceId.get(nsId).isSlownode();
}
return false;
}
boolean isSlownodeByBlockPoolId(String bpId) { boolean isSlownodeByBlockPoolId(String bpId) {
if (bpByBlockPoolId.containsKey(bpId)) { if (bpByBlockPoolId.containsKey(bpId)) {
return bpByBlockPoolId.get(bpId).isSlownode(); return bpByBlockPoolId.get(bpId).isSlownode();

View File

@ -4240,10 +4240,6 @@ public DataSetLockManager getDataSetLockManager() {
return dataSetLockManager; return dataSetLockManager;
} }
boolean isSlownodeByNameserviceId(String nsId) {
return blockPoolManager.isSlownodeByNameserviceId(nsId);
}
boolean isSlownodeByBlockPoolId(String bpId) { boolean isSlownodeByBlockPoolId(String bpId) {
return blockPoolManager.isSlownodeByBlockPoolId(bpId); return blockPoolManager.isSlownodeByBlockPoolId(bpId);
} }