mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-24 00:20:37 +00:00
pageserver: filter WAL by ShardIdentity
This commit is contained in:
@@ -411,6 +411,12 @@ impl ShardIdentity {
|
||||
String::new()
|
||||
}
|
||||
}
|
||||
|
||||
/// Convenience for checking if this identity is the 0th shard in a tenant,
|
||||
/// for special cases on shard 0 such as ingesting relation sizes.
|
||||
pub fn is_zero(&self) -> bool {
|
||||
self.number == ShardNumber(0)
|
||||
}
|
||||
}
|
||||
|
||||
impl Serialize for ShardIndex {
|
||||
|
||||
Reference in New Issue
Block a user