Commit Graph

1 Commits

Author SHA1 Message Date
Paul Lorenz 450b98b9a1 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
2026-07-17 16:14:56 -04:00