Skip to content

Commit

Permalink
puller: fix remove path (#973)
Browse files Browse the repository at this point in the history
  • Loading branch information
lidezhu authored Feb 8, 2025
1 parent d8a1f14 commit 1ef9ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logservice/logpuller/subscription_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ func (s *SubscriptionClient) Unsubscribe(subID SubscriptionID) {
log.Warn("unknown subscription", zap.Uint64("subscriptionID", uint64(subID)))
return
}
s.ds.RemovePath(rt.subID)
s.setTableStopped(rt)

log.Info("unsubscribe span success",
Expand Down Expand Up @@ -398,6 +397,7 @@ func (s *SubscriptionClient) onTableDrained(rt *subscribedSpan) {

s.totalSpans.Lock()
defer s.totalSpans.Unlock()
s.ds.RemovePath(rt.subID)
delete(s.totalSpans.spanMap, rt.subID)
}

Expand Down

0 comments on commit 1ef9ddc

Please sign in to comment.