This is an automated email from the ASF dual-hosted git repository. hanahmily pushed a commit to branch bug/condition_in in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb.git
commit 30a3e117adc390de9fdb3f71874b8ecf94176353 Author: Gao Hongtao <[email protected]> AuthorDate: Fri Sep 19 11:10:35 2025 +0800 Reset snapshot state during release to prevent negative reference count. This change ensures proper resource management in the snapshot lifecycle. --- banyand/internal/sidx/snapshot.go | 1 + 1 file changed, 1 insertion(+) diff --git a/banyand/internal/sidx/snapshot.go b/banyand/internal/sidx/snapshot.go index d6612503..ce7cf6a6 100644 --- a/banyand/internal/sidx/snapshot.go +++ b/banyand/internal/sidx/snapshot.go @@ -95,6 +95,7 @@ func (s *snapshot) release() { Msg("snapshot reference count went negative") return } + s.reset() } // getParts returns parts that potentially contain data within the specified key range.
