From c58b2696d3783592bea1bd3ba65052e0aca84ea8 Mon Sep 17 00:00:00 2001 From: Kris Zyp Date: Thu, 12 May 2022 09:56:43 -0600 Subject: [PATCH] Print txn id on reader lock error, #164 --- dependencies/lmdb/libraries/liblmdb/mdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dependencies/lmdb/libraries/liblmdb/mdb.c b/dependencies/lmdb/libraries/liblmdb/mdb.c index 07fce8d1b..570a859a8 100644 --- a/dependencies/lmdb/libraries/liblmdb/mdb.c +++ b/dependencies/lmdb/libraries/liblmdb/mdb.c @@ -3305,7 +3305,7 @@ mdb_txn_renew0(MDB_txn *txn) if (r->mr_pid != env->me_pid || r->mr_txnid != (txnid_t)-1) { last_error = malloc(100); if (r->mr_pid != env->me_pid) - sprintf(last_error, "The reader lock pid %u doesn't match env pid %u", r->mr_pid, env->me_pid); + sprintf(last_error, "The reader lock pid %u, txn %i, doesn't match env pid %u", r->mr_pid, r->mr_txnid, env->me_pid); else sprintf(last_error, "The reader lock has a txn id %i", r->mr_txnid); return MDB_BAD_RSLOT;