You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by we...@apache.org on 2021/06/30 07:12:27 UTC
[hadoop] branch trunk updated: HDFS-16096. Delete useless method
DirectoryWithQuotaFeature#setQuota (#3156)
This is an automated email from the ASF dual-hosted git repository.
weichiu pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 4cac6ec HDFS-16096. Delete useless method DirectoryWithQuotaFeature#setQuota (#3156)
4cac6ec is described below
commit 4cac6ec40528f6a1252de43599003291cd5fe5c3
Author: Xiangyi Zhu <82...@users.noreply.github.com>
AuthorDate: Wed Jun 30 15:12:08 2021 +0800
HDFS-16096. Delete useless method DirectoryWithQuotaFeature#setQuota (#3156)
Co-authored-by: zhuxiangyi <43...@qq.com>
Reviewed-by: Viraj Jasani <vj...@apache.org>
---
.../hdfs/server/namenode/DirectoryWithQuotaFeature.java | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/DirectoryWithQuotaFeature.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/DirectoryWithQuotaFeature.java
index cddefd3..42cd48a 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/DirectoryWithQuotaFeature.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/DirectoryWithQuotaFeature.java
@@ -83,21 +83,6 @@ public final class DirectoryWithQuotaFeature implements INode.Feature {
return new QuotaCounts.Builder().quotaCount(this.quota).build();
}
- /** Set this directory's quota
- *
- * @param nsQuota Namespace quota to be set
- * @param ssQuota Storagespace quota to be set
- * @param type Storage type of the storage space quota to be set.
- * To set storagespace/namespace quota, type must be null.
- */
- void setQuota(long nsQuota, long ssQuota, StorageType type) {
- if (type != null) {
- this.quota.setTypeSpace(type, ssQuota);
- } else {
- setQuota(nsQuota, ssQuota);
- }
- }
-
void setQuota(long nsQuota, long ssQuota) {
this.quota.setNameSpace(nsQuota);
this.quota.setStorageSpace(ssQuota);
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org