ButterBright commented on code in PR #711:
URL: 
https://github.com/apache/skywalking-banyandb/pull/711#discussion_r2235869956


##########
banyand/measure/flusher.go:
##########
@@ -211,7 +211,10 @@ func (tst *tsTable) flusherLoopNoMerger(flushCh chan 
*flusherIntroduction, intro
                                }()
                                curSnapshot := tst.currentSnapshot()
                                if curSnapshot != nil {
-                                       defer curSnapshot.decRef()
+                                       defer func() {
+                                               curSnapshot.decRef()
+                                               curSnapshot = nil
+                                       }()

Review Comment:
   I think stream need the change as well?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to