HBASE-21631: list_quotas should print human readable values for LIMIT
Signed-off-by: Guanghao Zhang <zghao@apache.org>
This commit is contained in:
parent
c5810f19a6
commit
7e911d9e21
|
@ -205,7 +205,7 @@ class SpaceLimitSettings extends QuotaSettings {
|
|||
if (proto.getQuota().getRemove()) {
|
||||
sb.append(", REMOVE => ").append(proto.getQuota().getRemove());
|
||||
} else {
|
||||
sb.append(", LIMIT => ").append(proto.getQuota().getSoftLimit());
|
||||
sb.append(", LIMIT => ").append(sizeToString(proto.getQuota().getSoftLimit()));
|
||||
sb.append(", VIOLATION_POLICY => ").append(proto.getQuota().getViolationPolicy());
|
||||
}
|
||||
return sb.toString();
|
||||
|
|
|
@ -261,7 +261,7 @@ public class GlobalQuotaSettingsImpl extends GlobalQuotaSettings {
|
|||
if (spaceProto.getRemove()) {
|
||||
builder.append(", REMOVE => ").append(spaceProto.getRemove());
|
||||
} else {
|
||||
builder.append(", LIMIT => ").append(spaceProto.getSoftLimit());
|
||||
builder.append(", LIMIT => ").append(sizeToString(spaceProto.getSoftLimit()));
|
||||
builder.append(", VIOLATION_POLICY => ").append(spaceProto.getViolationPolicy());
|
||||
}
|
||||
builder.append(" } ");
|
||||
|
|
Loading…
Reference in New Issue