Skip to content

Commit

Permalink
Rename binary attachment_service -> storage_controller
Browse files Browse the repository at this point in the history
jcsp committed Mar 7, 2024
1 parent a9a4a76 commit 25b2ed7
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -53,7 +53,7 @@ RUN set -e \
--bin pagectl \
--bin safekeeper \
--bin storage_broker \
--bin attachment_service \
--bin storage_controller \
--bin proxy \
--bin neon_local \
--locked --release \
4 changes: 4 additions & 0 deletions control_plane/attachment_service/Cargo.toml
Original file line number Diff line number Diff line change
@@ -4,6 +4,10 @@ version = "0.1.0"
edition.workspace = true
license.workspace = true

[[bin]]
name = "storage_controller"
path = "src/main.rs"

[features]
default = []
# Enables test-only APIs and behaviors
2 changes: 1 addition & 1 deletion control_plane/src/attachment_service.rs
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ pub struct AttachmentService {
client: reqwest::Client,
}

const COMMAND: &str = "attachment_service";
const COMMAND: &str = "storage_broker";

const ATTACHMENT_SERVICE_POSTGRES_VERSION: u32 = 16;

2 changes: 1 addition & 1 deletion control_plane/src/local_env.rs
Original file line number Diff line number Diff line change
@@ -232,7 +232,7 @@ impl LocalEnv {
// run from the same location as neon_local. This means that for compatibility
// tests that run old pageserver/safekeeper, they still run latest attachment service.
let neon_local_bin_dir = env::current_exe().unwrap().parent().unwrap().to_owned();
neon_local_bin_dir.join("attachment_service")
neon_local_bin_dir.join("storage_controller")
}

pub fn safekeeper_bin(&self) -> PathBuf {

0 comments on commit 25b2ed7

Please sign in to comment.