aboutsummaryrefslogtreecommitdiff
path: root/cmd/krino/enum_test.go
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-09-17 14:11:52 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-09-17 14:11:52 +0200
commited86f44a926fd1f0d438cbe5e2e10ad5b063db55 (patch)
treea0a4c53a9ed5f207b303623e4dfd3cac16ed302a /cmd/krino/enum_test.go
parent4c6fadfab5434317357ad0272ace7927d2945942 (diff)
downloadkrino-ed86f44a926fd1f0d438cbe5e2e10ad5b063db55.tar.gz
krino-ed86f44a926fd1f0d438cbe5e2e10ad5b063db55.zip
the window cannot pull the lock out from under a running apply
Close releases the directory lock and closes the log. The window could reach it while an apply was still running - saving rules, saving settings, adding a directory, or closing the window - and the engine then went on moving files with the log shut underneath: a file moved that no krino undo can see, the rest of the plan silently abandoned, and the directory unlocked while krino was still working in it. PlanTab and UndoTab refuse to close while their apply is in flight (model.ErrApplying), the window's close request and reloadEngine honour the refusal instead of ignoring it, and the tabs and Settings are greyed out for the duration so a button that cannot work says so by being unavailable rather than by an error afterwards. The test starts an apply, calls Close from another goroutine while it is in flight, and requires the refusal.
Diffstat (limited to 'cmd/krino/enum_test.go')
0 files changed, 0 insertions, 0 deletions