MCPcopy Create free account
hub / github.com/apple/foundationdb / getMaxWriteKeySize

Function getMaxWriteKeySize

fdbclient/NativeAPI.actor.cpp:10123–10127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10121}
10122
10123int64_t getMaxWriteKeySize(KeyRef const& key, bool hasRawAccess) {
10124 int64_t tenantSize = hasRawAccess ? TenantMapEntry::PREFIX_SIZE : 0;
10125 return key.startsWith(systemKeys.begin) ? CLIENT_KNOBS->SYSTEM_KEY_SIZE_LIMIT
10126 : CLIENT_KNOBS->KEY_SIZE_LIMIT + tenantSize;
10127}
10128
10129int64_t getMaxClearKeySize(KeyRef const& key) {
10130 return getMaxKeySize(key);

Callers 12

Future<Void> loadAndRunFunction · 0.85
loadAndRunMethod · 0.85
TestAtomicOpMethod · 0.85
TestSetMethod · 0.85
TestWatchMethod · 0.85
setMethod · 0.85
atomicOpMethod · 0.85
getMaxKeySizeFunction · 0.85
atomicOpMethod · 0.85
setMethod · 0.85
watchMethod · 0.85

Calls 1

startsWithMethod · 0.45

Tested by 3

TestAtomicOpMethod · 0.68
TestSetMethod · 0.68
TestWatchMethod · 0.68