Simplify storageQuotaKey() function implementation
Co-authored-by: Trevor Clinkenbeard <trevor.clinkenbeard@snowflake.com>
This commit is contained in:
parent
882df774c0
commit
2757262ec9
|
@ -1414,10 +1414,7 @@ const KeyRangeRef storageQuotaKeys(LiteralStringRef("\xff/storageQuota/"), Liter
|
|||
const KeyRef storageQuotaPrefix = storageQuotaKeys.begin;
|
||||
|
||||
Key storageQuotaKey(StringRef tenantName) {
|
||||
BinaryWriter wr(Unversioned());
|
||||
wr.serializeBytes(storageQuotaPrefix);
|
||||
wr << tenantName;
|
||||
return wr.toValue();
|
||||
return tenantName.withPrefix(storageQuotaPrefix);
|
||||
}
|
||||
|
||||
// for tests
|
||||
|
|
Loading…
Reference in New Issue