pod-registry-rename修正

This commit is contained in:
2026-04-29 21:04:47 +09:00
parent 274b7df32d
commit 0b322a645a
4 changed files with 49 additions and 3 deletions
+2 -2
View File
@@ -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,
+1 -1
View File
@@ -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(),