| 7501 | } |
| 7502 | |
| 7503 | Future<std::pair<Optional<StorageMetrics>, int>> DatabaseContext::waitStorageMetrics( |
| 7504 | KeyRange const& keys, |
| 7505 | StorageMetrics const& min, |
| 7506 | StorageMetrics const& max, |
| 7507 | StorageMetrics const& permittedError, |
| 7508 | int shardLimit, |
| 7509 | int expectedShardCount) { |
| 7510 | return ::waitStorageMetrics(Database(Reference<DatabaseContext>::addRef(this)), |
| 7511 | keys, |
| 7512 | min, |
| 7513 | max, |
| 7514 | permittedError, |
| 7515 | shardLimit, |
| 7516 | expectedShardCount); |
| 7517 | } |
| 7518 | |
| 7519 | Future<StorageMetrics> DatabaseContext::getStorageMetrics(KeyRange const& keys, int shardLimit) { |
| 7520 | if (shardLimit > 0) { |
no test coverage detected