mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-11 03:38:07 +00:00
fix(recovery): retain interrupted checkpoint sidecars (#3463)
Retain and validate both checkpoint lock sidecars so cleanup and native replay use the same complete recovery family.
This commit is contained in:
parent
c3437c2bf7
commit
c191d8833c
1 changed files with 9 additions and 1 deletions
|
|
@ -17,7 +17,15 @@ import { INDEX_METADATA_FILE, LEGACY_METADATA_FILE } from './storage-constants.j
|
|||
|
||||
const STAGING_FILENAME =
|
||||
/^lbug\.staging\.[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;
|
||||
const FAMILY_SUFFIXES = ['', '.wal', '.shadow', '.wal.checkpoint', '.lock'] as const;
|
||||
export const FAMILY_SUFFIXES = [
|
||||
'',
|
||||
'.wal',
|
||||
'.shadow',
|
||||
'.wal.checkpoint',
|
||||
'.lock',
|
||||
'.checkpoint.intent.lock',
|
||||
'.checkpoint.apply.lock',
|
||||
] as const;
|
||||
|
||||
export interface ResolvedEmbeddingRecovery extends EmbeddingRecoveryReference {
|
||||
dbPath: string;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue