We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c0fafe commit 46b7bf2Copy full SHA for 46b7bf2
src/lib/disk_cache/lmdb/disk_cache.ml
@@ -47,6 +47,7 @@ module Make (Data : Binable.S) = struct
47
Rw.get ~env db idx |> Option.value_exn
48
49
let put ({ env; db; counter; logger; garbage } : t) (x : Data.t) : id =
50
+ (* TODO: we may reuse IDs by pulling them from the `garbage` hash set *)
51
let idx = !counter in
52
incr counter ;
53
let res = { idx } in
0 commit comments