[#7836] fixed migration logs write deadlock and added app.ClearBootstrap/OnClearBootstrap helpers

This commit is contained in:
Gani Georgiev
2026-09-07 19:31:34 +03:00
parent 5684ee24f1
commit 114c01ac12
18 changed files with 3790 additions and 3576 deletions
+7
View File
@@ -11,6 +11,13 @@ import (
"github.com/pocketbase/pocketbase/tools/types"
)
// contextKey is an alias type to prevent collisions with other log context keys.
type contextKey int
// BlockKey is a context key usually used to indicate that the
// batched logs write should block until writes are completed.
var BlockKey contextKey
var _ slog.Handler = (*BatchHandler)(nil)
// BatchOptions are options for the BatchHandler.