Skip to content

Commit 326b782

Browse files
authored
fix(db):avoid dumping a wrong cached data (#5491)
1 parent fa8d8cf commit 326b782

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

chainbase/src/main/java/org/tron/core/db2/common/TxCacheDB.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ private boolean handleException(Throwable e) {
318318
private void dump() {
319319
if (!isValid.get()) {
320320
logger.info("bloomFilters is not valid.");
321+
return;
321322
}
322323
FileUtil.createDirIfNotExists(this.cacheDir.toString());
323324
logger.info("dump bloomFilters start.");

0 commit comments

Comments
 (0)