Skip to content

Commit

Permalink
core: fix size error
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjunLi committed Apr 1, 2024
1 parent c509d88 commit a63a4b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/rawdb/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func (frdb *freezerdb) JournalClose() {

// JournalSize returns the size of the journal.
func (frdb *freezerdb) JournalSize() uint64 {
if frdb.journalFd == nil {
if frdb.journalFd != nil {
fileInfo, err := frdb.journalFd.Stat()
if err != nil {
log.Crit("Failed to stat journal", "err", err)
Expand Down

0 comments on commit a63a4b9

Please sign in to comment.