Skip to content
pi-c Check-in [aa138020d8]
Login

Check-in [aa138020d8]

Overview
Comment:Let older pics step aside when a journal needs migrating, and add pic doctor
Timelines: family | ancestors | descendants | both | migrate-block
Files: files | file ages | folders
SHA3-256: aa138020d8fac5f10d1fd2101f83903bbc86551893c14744862c24f698135ea3
User & Date: dmestas on 2026-11-24 10:06:45.347
Original Comment: Let older pics step aside when a journal needs migrating, and add pic doctor

A newer pic that must migrate a journal asks its holders to let go (journal.sqlite.pic-migrate); pic remote and pic attach yield, and pic remote serves the workspace again once it is updated. Each open store says who it is in journal.sqlite.pic-holders, so a migration that is still blocked names every holder with its pid, role, since when and the command that ends it.

pic doctor brings a journal up to date in one step: it stops the older pics in the way (SIGTERM, then SIGKILL; never itself or its parent, never a non-pic), finds holders that do not say so through the platform's new file_users seam (lsof), and migrates. A phone gets the same through a repair message on an unavailable workspace marked fix. Schema errors are plain words everywhere.

Other Links: branch diff | manifest | tags
About

A newer pic that must migrate a journal asks its holders to let go (journal.sqlite.pic-migrate); pic remote and pic attach yield, and pic remote serves the workspace again once it is updated. Each open store says who it is in journal.sqlite.pic-holders, so a migration that is still blocked names every holder with its pid, role, since when and the command that ends it.

pic doctor brings a journal up to date in one step: it stops the older pics in the way (SIGTERM, then SIGKILL; never itself or its parent, never a non-pic), finds holders that do not say so through the platform's new file_users seam (lsof), and migrates. A phone gets the same through a repair message on an unavailable workspace marked fix. Schema errors are plain words everywhere.

Context
2026-11-24
11:17
grapevine test: expect the plain newer-pic message check-in: dc3323df80 user: dmestas tags: migrate-block
10:06
Let older pics step aside when a journal needs migrating, and add pic doctor check-in: aa138020d8 user: dmestas tags: migrate-block
06:16
land settings-4

via mac, quarry check-in: 823fde8d53 user: dmestas tags: trunk

Changes
Added src/doctor.c version [0eed06eae2].
Added src/doctor.h version [29aff00d3e].