mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-18 05:30:37 +00:00
storcon: avoid promoting too many shards of the same tenant
This commit is contained in:
@@ -43,7 +43,7 @@ use utils::id::TenantId;
|
||||
pub struct ShardNumber(pub u8);
|
||||
|
||||
#[derive(Ord, PartialOrd, Eq, PartialEq, Clone, Copy, Serialize, Deserialize, Debug, Hash)]
|
||||
pub struct ShardCount(u8);
|
||||
pub struct ShardCount(pub u8);
|
||||
|
||||
/// Combination of ShardNumber and ShardCount. For use within the context of a particular tenant,
|
||||
/// when we need to know which shard we're dealing with, but do not need to know the full
|
||||
|
||||
Reference in New Issue
Block a user