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

Method getStorageMetrics

fdbclient/NativeAPI.actor.cpp:7519–7533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7517}
7518
7519Future<StorageMetrics> DatabaseContext::getStorageMetrics(KeyRange const& keys, int shardLimit) {
7520 if (shardLimit > 0) {
7521 StorageMetrics m;
7522 m.bytes = -1;
7523 return extractMetrics(::waitStorageMetrics(Database(Reference<DatabaseContext>::addRef(this)),
7524 keys,
7525 StorageMetrics(),
7526 m,
7527 StorageMetrics(),
7528 shardLimit,
7529 -1));
7530 } else {
7531 return ::getStorageMetricsLargeKeyRange(Database(Reference<DatabaseContext>::addRef(this)), keys);
7532 }
7533}
7534
7535ACTOR Future<Standalone<VectorRef<DDMetricsRef>>> waitDataDistributionMetricsList(Database cx,
7536 KeyRange keys,

Calls 2

DatabaseClass · 0.50
StorageMetricsClass · 0.50

Tested by

no test coverage detected