Skip to content

Commit

Permalink
Ensure the Git SoT switcher command honors replication state
Browse files Browse the repository at this point in the history
Summary: If a repo is not being replicated from Mononoke, then its SoT should not be switched to Mononoke cause this can lead to the system failing. This diff takes care of that.

Reviewed By: YousefSalama, singhsrb

Differential Revision: D64392522

fbshipit-source-id: ada481f28003437c895db2ac8ef1dd1abdf49b99
  • Loading branch information
RajivTS authored and facebook-github-bot committed Oct 15, 2024
1 parent 6314446 commit 864a734
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions eden/mononoke/tools/admin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ git_types = { version = "0.1.0", path = "../../git/git_types" }
gix-hash = { git = "https://github.com/pierrechevalier83/gitoxide", rev = "a080348c2fefb7a300ec80f4481617f870065589" }
gix-object = { git = "https://github.com/pierrechevalier83/gitoxide", rev = "a080348c2fefb7a300ec80f4481617f870065589" }
itertools = "0.12.1"
justknobs = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "main" }
manifest = { version = "0.1.0", path = "../../manifest" }
megarepo_error = { version = "0.1.0", path = "../../megarepo_api/megarepo_error" }
mercurial_derivation = { version = "0.1.0", path = "../../derived_data/mercurial_derivation" }
Expand Down
1 change: 1 addition & 0 deletions eden/mononoke/tools/admin/TARGETS
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ rust_binary(
"//thrift/lib/rust:fbthrift",
] + ([] if rust_oss.is_oss_build() else [
"fbsource//third-party/rust:serde",
"//common/rust/shed/justknobs_stub:justknobs",
"//common/rust/mysql:mysql_client",
"//eden/mononoke/blobstore:blobstore_factory",
"//eden/mononoke/blobstore:fileblob",
Expand Down

0 comments on commit 864a734

Please sign in to comment.