Skip to content

Commit

Permalink
skip flush
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Feb 13, 2025
1 parent 8e04f48 commit a350ee1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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*

Expand Down
4 changes: 3 additions & 1 deletion versiondb/tsrocksdb/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ func (s Store) FixData(storeNames []string, dryRun bool) error {
return err
}
}

if dryRun {
return nil
}

Check warning on line 246 in versiondb/tsrocksdb/store.go

View check run for this annotation

Codecov / codecov/patch

versiondb/tsrocksdb/store.go#L245-L246

Added lines #L245 - L246 were not covered by tests
return s.Flush()
}

Expand Down

0 comments on commit a350ee1

Please sign in to comment.