mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Fix source header name retrieval
Stream subject mapping added index prefix to Nats-Stream-Source which was stripped when retrieving that header. That caused startingSequenceForSources to iterate over whole stream because of name mismatch. Stripping was removed in this commit. Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
This commit is contained in:
@@ -2850,10 +2850,8 @@ func (mset *stream) processInboundSourceMsg(si *sourceInfo, m *inMsg) bool {
|
||||
// Generate a new style source header.
|
||||
func (si *sourceInfo) genSourceHeader(reply string) string {
|
||||
var b strings.Builder
|
||||
// strip the source index number from the iname
|
||||
name := si.iname[strings.IndexRune(si.iname, ':')+1:]
|
||||
|
||||
b.WriteString(name)
|
||||
b.WriteString(si.iname)
|
||||
b.WriteByte(' ')
|
||||
// Grab sequence as text here from reply subject.
|
||||
var tsa [expectedNumReplyTokens]string
|
||||
|
||||
Reference in New Issue
Block a user