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

Function getRandomShardCount

fdbserver/DataDistribution.actor.cpp:1398–1404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1396}
1397
1398inline int getRandomShardCount() {
1399#if defined(USE_SANITIZER)
1400 return deterministicRandom()->randomInt(1000, 24000); // 24000 * MAX_SHARD_SIZE = 12TB
1401#else
1402 return deterministicRandom()->randomInt(1000, CLIENT_KNOBS->TOO_MANY); // 2000000000; OOM
1403#endif
1404}
1405
1406} // namespace data_distribution_test
1407

Callers 1

Calls 2

deterministicRandomFunction · 0.85
randomIntMethod · 0.45

Tested by

no test coverage detected