Skip to content

Commit

Permalink
Merge pull request #3978 from nats-io/neil/encfix
Browse files Browse the repository at this point in the history
Don't recycle buffer more than once
  • Loading branch information
neilalexander committed Mar 17, 2023
2 parents 5c437a2 + 4647e14 commit 1cfb1b0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions server/filestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -4001,9 +4001,6 @@ func (mb *msgBlock) flushPendingMsgsLocked() (*LostStreamData, error) {
dst = make([]byte, lob)
}
mb.bek.XORKeyStream(dst, buf)
if cap(buf) <= defaultLargeBlockSize {
recycleMsgBlockBuf(buf)
}
buf = dst
}

Expand Down

0 comments on commit 1cfb1b0

Please sign in to comment.