Skip to content

Commit ac6e1a8

Browse files
committed
channeldb: skip dry run mode for optional migrations
1 parent b391503 commit ac6e1a8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

channeldb/db.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,6 +1422,14 @@ func (d *DB) syncVersions(versions []mandatoryVersion) error {
14221422
//
14231423
// NOTE: only support the prune_revocation_log optional migration atm.
14241424
func (d *DB) applyOptionalVersions(cfg OptionalMiragtionConfig) error {
1425+
// TODO(yy): need to design the db to support dry run for optional
1426+
// migrations.
1427+
if d.dryRun {
1428+
log.Info("Skipped optional migrations as dry run mode is not " +
1429+
"supported yet")
1430+
return nil
1431+
}
1432+
14251433
om, err := d.fetchOptionalMeta()
14261434
if err != nil {
14271435
if err == ErrMetaNotFound {

0 commit comments

Comments
 (0)