Skip to content

Commit

Permalink
Print txn id on reader lock error, #164
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed May 12, 2022
1 parent eb5b45f commit c58b269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dependencies/lmdb/libraries/liblmdb/mdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c58b269

Please sign in to comment.