Skip to content

Commit c94a0e9

Browse files
committed
RONDB-950: RDRS1 deadlock fix in heap package
1 parent fc06564 commit c94a0e9

File tree

1 file changed

+2
-3
lines changed
  • storage/ndb/rest-server/rest-api-server/internal/dal/heap

1 file changed

+2
-3
lines changed

storage/ndb/rest-server/rest-api-server/internal/dal/heap/heap.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,9 @@ func (heap *Heap) releaseAllBuffers() {
101101
heap.mutex.Lock()
102102
defer heap.mutex.Unlock()
103103

104-
stats := heap.GetNativeBuffersStats()
105-
if stats.BuffersCount != int64(len(heap.buffers)) {
104+
if heap.buffersStats.BuffersCount != int64(len(heap.buffers)) {
106105
log.Warnf("Shutting down heap. Number of free buffers do not match. Expecting: %d, Got: %d.",
107-
stats.BuffersCount, int64(len(heap.buffers)))
106+
heap.buffersStats.BuffersCount, int64(len(heap.buffers)))
108107
}
109108

110109
for _, buffer := range heap.buffers {

0 commit comments

Comments
 (0)