From 058066733034e17b6ada3368aa88761cbfc827dc Mon Sep 17 00:00:00 2001 From: Kris Zyp Date: Thu, 7 Mar 2024 17:51:07 -0700 Subject: [PATCH] Fix compilation errors --- dependencies/lmdb/libraries/liblmdb/mdb.c | 4 ++-- dependencies/lmdb/libraries/liblmdb/midl.c | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dependencies/lmdb/libraries/liblmdb/mdb.c b/dependencies/lmdb/libraries/liblmdb/mdb.c index 07908559e..cc0a6b4e1 100644 --- a/dependencies/lmdb/libraries/liblmdb/mdb.c +++ b/dependencies/lmdb/libraries/liblmdb/mdb.c @@ -9916,8 +9916,8 @@ mdb_node_add(MDB_cursor *mc, indx_t indx, mdb_dbg_pgno(mp), NUMKEYS(mp))); DPRINTF(("upper-lower = %u - %u = %"Z"d", mp->mp_upper,mp->mp_lower,room)); DPRINTF(("node size = %"Z"u", node_size)); - fprintf(stderr, "mdb_node_add: no room in page %u, got %u ptrs, %u - %u = %d, node size = %u\n", - mdb_dbg_pgno(mp), NUMKEYS(mp), mp->mp_upper, mp->mp_lower, room, node_size); + fprintf(stderr, "mdb_node_add: no room in page, got %u ptrs, %u - %u = %d, node size = %u\n", + NUMKEYS(mp), mp->mp_upper, mp->mp_lower, room, node_size); mc->mc_txn->mt_flags |= MDB_TXN_ERROR; return MDB_PAGE_FULL; } diff --git a/dependencies/lmdb/libraries/liblmdb/midl.c b/dependencies/lmdb/libraries/liblmdb/midl.c index def8c5486..7c9e4872b 100644 --- a/dependencies/lmdb/libraries/liblmdb/midl.c +++ b/dependencies/lmdb/libraries/liblmdb/midl.c @@ -124,7 +124,6 @@ int mdb_midl_insert( MDB_IDL* ids_ref, MDB_ID id, int insertion_count ) if (id - next_count <= next_id && next_id > 0) { if (id - next_count < next_id) { fprintf(stderr, "overlapping duplicate entry %u\n", id); - mdb_tassert(ids, 0); return -1; } // connected to next entry