mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-25 17:10:38 +00:00
pagebench: add a 'getpage@lsn' benchmark
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user