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:
parent
a822a3c70b
commit
4e699f0383
@ -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();
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user