pod-registry-rename修正
This commit is contained in:
@@ -168,13 +168,13 @@ impl Tool for SpawnPodTool {
|
||||
|
||||
let predicted_socket = self.runtime_base.join(&input.name).join("sock");
|
||||
let lock_path = pod_registry::default_registry_path()
|
||||
.map_err(|e| ToolError::ExecutionFailed(format!("scope lock path: {e}")))?;
|
||||
.map_err(|e| ToolError::ExecutionFailed(format!("pod-registry path: {e}")))?;
|
||||
|
||||
// Reserve the allocation up front. Spawner's pid is a live
|
||||
// placeholder; the child will rewrite it via `adopt_allocation`.
|
||||
{
|
||||
let mut guard = LockFileGuard::open(&lock_path)
|
||||
.map_err(|e| ToolError::ExecutionFailed(format!("scope lock open: {e}")))?;
|
||||
.map_err(|e| ToolError::ExecutionFailed(format!("pod-registry open: {e}")))?;
|
||||
pod_registry::delegate_scope(
|
||||
&mut guard,
|
||||
&self.spawner_name,
|
||||
|
||||
@@ -385,7 +385,7 @@ async fn shutdown_releases_scope_allocation_when_present() {
|
||||
)
|
||||
.await;
|
||||
|
||||
// Allocation is gone from the scope lock.
|
||||
// Allocation is gone from the pod-registry.
|
||||
let g = LockFileGuard::open(&lock_path).unwrap();
|
||||
assert!(
|
||||
g.data().find("kid").is_none(),
|
||||
|
||||
Reference in New Issue
Block a user