Skip to content

Commit

Permalink
fix(rocksdb) upgrade rocksdb package to self-compiled and add `dein…
Browse files Browse the repository at this point in the history
…it`s to iters (#226)

* upgrade `rocksdb` package to self-compiled and add `deinit`s to iters

* build: update `rocksdb` to add the ubsan flag

* build: upgrade rocksdb-zig to commit on master since merge

---------

Co-authored-by: Drew Nutter <[email protected]>
  • Loading branch information
Rexicon226 and dnut authored Aug 19, 2024
1 parent 70f67f0 commit 3c81296
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
.hash = "1220f70ac854b59315a8512861e039648d677feb4f9677bd873d6b9b7074a5906485",
},
.rocksdb = .{
.url = "https://github.com/Syndica/rocksdb-zig/archive/b1b40bfc144919dbee4e717539b38793de54b167.tar.gz",
.hash = "122015a8bebcd4b020e9b2a2bacafb70ee5f60025b16501a60c53b0796c4f7b01f36",
.url = "https://github.com/Syndica/rocksdb-zig/archive/d96d80b198f0879963432f7ae5ffa946b6612585.tar.gz",
.hash = "1220307fd292e2b10863b0f0a04fdf6c67e32ba78059a943527672cff63e09ae58d2",
},
},
}
2 changes: 2 additions & 0 deletions src/ledger/reader.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1741,6 +1741,7 @@ test "slotMetaIterator" {
try db.commit(write_batch);

var iter = try reader.slotMetaIterator(0);
defer iter.deinit();
var index: u64 = 0;
while (try iter.next()) |entry| {
var slot_meta = entry[1];
Expand Down Expand Up @@ -1780,6 +1781,7 @@ test "rootedSlotIterator" {
try db.commit(write_batch);

var iter = try reader.rootedSlotIterator(0);
defer iter.deinit();
var i: u64 = 0;
while (try iter.next()) |entry| {
try std.testing.expectEqual(roots[i], entry[0]);
Expand Down

0 comments on commit 3c81296

Please sign in to comment.