fix: sync topic sequence after server data

This commit is contained in:
richjohnrambo
2026-09-16 16:21:53 +08:00
parent 7461216c03
commit 6729f40665
2 changed files with 45 additions and 0 deletions
+6
View File
@@ -680,6 +680,12 @@ func (t *Topic) handleServerMsg(msg *ServerComMessage) {
if msg.Pres != nil {
t.handlePresence(msg)
} else if msg.Info != nil || msg.Data != nil {
if msg.Data != nil && msg.Data.SeqId > t.lastID {
t.lastID = msg.Data.SeqId
if !msg.Data.Timestamp.IsZero() {
t.touched = msg.Data.Timestamp
}
}
if msg.Info != nil && msg.Info.What == "group" {
// Group management event published by the HTTP or Kafka admin
// interface: update in-memory topic state (cached permissions,