From e18c0e92ba35bb863f7375b190b0448d5fa65d33 Mon Sep 17 00:00:00 2001
From: Luke Shumaker <lukeshu@lukeshu.com>
Date: Fri, 30 Dec 2022 21:52:57 -0700
Subject: rebuildnodes/btrees: Allow item rbtrees to be evicted

---
 lib/containers/sortedmap.go | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'lib/containers')

diff --git a/lib/containers/sortedmap.go b/lib/containers/sortedmap.go
index d6d2f9e..52308c9 100644
--- a/lib/containers/sortedmap.go
+++ b/lib/containers/sortedmap.go
@@ -92,3 +92,7 @@ func (m *SortedMap[K, V]) SearchAll(fn func(K, V) int) []OrderedKV[K, V] {
 		return fn(kv.K, kv.V)
 	})
 }
+
+func (m *SortedMap[K, V]) Len() int {
+	return m.inner.Len()
+}
-- 
cgit v1.2.3-2-g168b