Files
pad/internal
xarmian a3de1bd317 fix(store): both workspace mints take slug-then-owner locks in one order (BUG-2808 PR A review r2)
CreateWorkspace locked the owner and then inserted; ImportWorkspace inserts
and then locks. On Postgres a create and an import of one name for one owner
formed a cycle: the create held the owner lock while waiting on the import's
uncommitted slug row, and the import then asked for the owner lock. The
create now inserts first and counts with pendingOwn=1, like the import, and a
test builds the interleaving under lock_timeout (red with the old order:
SQLSTATE 55P03). Two doc comments narrowed to what the code guarantees.

Claude-Session: https://claude.ai/code/session_01BLg7wiBeSgXvAhWi23mT4Z
2026-09-16 17:02:37 -04:00
..
2026-09-16 12:00:11 -04:00
2026-03-26 01:52:36 +00:00