pagebench: add a 'basebackup' benchmark

This commit is contained in:
Christian Schwarz
2023-12-13 13:45:56 +00:00
parent 0f8b4faa50
commit 136bec6014
10 changed files with 538 additions and 5 deletions

View File

@@ -81,6 +81,10 @@ impl TenantShardId {
pub fn is_zero(&self) -> bool {
self.shard_number == ShardNumber(0)
}
pub fn is_unsharded(&self) -> bool {
self.shard_number == ShardNumber(0) && self.shard_count == ShardCount(0)
}
}
/// Formatting helper