Skip to content

Commit

Permalink
fix: reload file need use privious pos (#79)
Browse files Browse the repository at this point in the history
* fix: reload file need use privious pos

* docs: add release notes

---------

Co-authored-by: hardy <[email protected]>
  • Loading branch information
luohoufu and luohf-infinilabs authored Feb 12, 2025
1 parent 0394683 commit ff01bf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/content.en/docs/release-notes/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Information about release notes of INFINI Framework is provided here.

### Bug fix

- Fixed reload file need use privious pos (#79)

### Improvements

## v1.1.1 (2025-01-24)
Expand Down
1 change: 1 addition & 0 deletions modules/queue/disk_queue/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ READ_MSG:
log.Debugf("invalid message size detected. this might be due to a partial file load. reloading segment: %d", d.segment)
}

d.readPos = previousPos
stats.Increment("consumer", d.qCfg.ID, d.cCfg.ID, "reload_partial_file")
goto RELOAD_FILE
}
Expand Down

0 comments on commit ff01bf6

Please sign in to comment.