mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-14 00:42:54 +00:00
Currently using gc blocking and unblocking with storage controller managed pageservers is painful. Implement the API on storage controller. Fixes: #8893
21 lines
565 B
Rust
21 lines
565 B
Rust
pub mod mgmt_api;
|
|
pub mod page_service;
|
|
|
|
/// For timeline_block_unblock_gc, distinguish the two different operations. This could be a bool.
|
|
// If file structure is per-kind not per-feature then where to put this?
|
|
#[derive(Clone, Copy)]
|
|
pub enum BlockUnblock {
|
|
Block,
|
|
Unblock,
|
|
}
|
|
|
|
impl std::fmt::Display for BlockUnblock {
|
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
|
let s = match self {
|
|
BlockUnblock::Block => "block",
|
|
BlockUnblock::Unblock => "unblock",
|
|
};
|
|
f.write_str(s)
|
|
}
|
|
}
|