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
e160b5ac8d
commit
b2bf22e209
|
@ -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();
|
||||
|
|
|
@ -276,7 +276,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