Skip to content

Commit

Permalink
Allow resetting manager to the same offset
Browse files Browse the repository at this point in the history
Helpful if you just want to update the metadata, or maybe in more async
scenarios.
  • Loading branch information
eapache committed Oct 4, 2017
1 parent 1b103ff commit 96fa1c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion offset_manager.go
Expand Up @@ -340,7 +340,7 @@ func (pom *partitionOffsetManager) ResetOffset(offset int64, metadata string) {
pom.lock.Lock()
defer pom.lock.Unlock()

if offset < pom.offset {
if offset <= pom.offset {
pom.offset = offset
pom.metadata = metadata
pom.dirty = true
Expand Down

0 comments on commit 96fa1c8

Please sign in to comment.