Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Commit

Permalink
seqnum
Browse files Browse the repository at this point in the history
  • Loading branch information
kiranrg committed May 5, 2017
1 parent 30034cc commit 18cc8c0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions services/outputhost/ackmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ type (

// msgCtx is the message context which is stored locally on the ackMgr
msgCtx struct {
addr storeHostAddress
seq common.SequenceNumber
acked bool
addr storeHostAddress
seqnum common.SequenceNumber
acked bool
}

levels struct {
Expand Down Expand Up @@ -140,8 +140,8 @@ func (ackMgr *ackManager) getNextAckID(address storeHostAddress, sequence common

// now store the message in the data structure internally
ackMgr.addrs[ackMgr.readLevel] = &msgCtx{
addr: address,
seq: sequence,
addr: address,
seqnum: sequence,
}

// Let the committer know about the new read level
Expand Down Expand Up @@ -240,7 +240,7 @@ func (ackMgr *ackManager) updateAckLevel() {
// We need to commit every message we see here, since we may have an interleved stream,
// and only the committer knows how to report the level(s). This is true, e.g. for Kafka.
ackMgr.committer.SetCommitLevel(CommitterLevel{
seqNo: addrs.seq,
seqNo: addrs.seqnum,
address: addrs.addr,
})

Expand Down

0 comments on commit 18cc8c0

Please sign in to comment.