Commit Graph

1 Commits

Author SHA1 Message Date
Paul Lorenz 70f97e5b0d Validate migration source db has data before restore. For #4104
- adds validateMigrationSourceDb, a read-only check that the migration source
  bolt db contains at least one identity, and calls it in RaftRestoreFromBoltDb
  before any streaming or bootstrap
- rejects an empty, stray, or partially-written db that db.Open would otherwise
  open (creating the root bucket) and restore into an empty single-node cluster,
  which os.Stat alone could not catch
- adds a unit test covering the empty and populated cases

(cherry picked from commit 450b98b9a1)
2026-08-06 16:02:13 -04:00