diff --git a/CHANGELOG.md b/CHANGELOG.md index a26a69d856..182c210954 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,7 +24,7 @@ ### Improvements * [#1712](https://github.com/crypto-org-chain/cronos/pull/1712) Upgrade rocksdb to `v9.8.4`. -* [#1747](https://github.com/crypto-org-chain/cronos/pull/1747) Skip batch initialization when fixdata with dry-run. +* [#1747](https://github.com/crypto-org-chain/cronos/pull/1747) Skip batch initialization and flush when fixdata with dry-run. *Dec 2, 2024* diff --git a/versiondb/tsrocksdb/store.go b/versiondb/tsrocksdb/store.go index abd0e48f8e..68d837da8d 100644 --- a/versiondb/tsrocksdb/store.go +++ b/versiondb/tsrocksdb/store.go @@ -241,7 +241,9 @@ func (s Store) FixData(storeNames []string, dryRun bool) error { return err } } - + if dryRun { + return nil + } return s.Flush() }