pagebench: add a 'getpage@lsn' benchmark

This commit is contained in:
Christian Schwarz
2023-12-13 13:53:11 +00:00
parent 7a27b811a1
commit edc2fa88b8
4 changed files with 43 additions and 34 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