mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
ee587b8ef5
- Fix DeleteContainer FAILED_PRECONDITION by cleaning up stopped task entries before container deletion - Fix CreateSnapshot leaving container in broken state: commit turns the active snapshot read-only, so the full cycle (stop → commit → prepare → delete → recreate → start) is now applied consistently - Use context.WithoutCancel for atomic container replacement sequences to prevent cancelled HTTP requests from corrupting container state - Use dctx for DB operations (recordSnapshotVersion/insertEvent) to avoid orphan snapshots in containerd without matching DB records - Restart task + network after snapshot replacement, fixing Exec after CreateVersion where the container had no running task - Extract replaceContainerSnapshot helper to deduplicate the prepare → delete → recreate → start pattern across three call sites - Move snapshot list data fetching into Manager.ListBotSnapshotData to encapsulate per-container locking; remove exported LockBot method - Use UnixNano for snapshot names to avoid second-precision collisions