From 8fce97dca96925eb7c7af9d47be0ef183e9a4a9f Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Mon, 4 Jan 2021 18:06:00 +0300 Subject: [PATCH] mdbx: fix `mdbx_cursors_eot()`. Change-Id: I6021ff019f25110db96f9ef351d31a1f48b76c18 --- src/core.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core.c b/src/core.c index 6a865485..40f9363d 100644 --- a/src/core.c +++ b/src/core.c @@ -6005,13 +6005,11 @@ static void mdbx_cursors_eot(MDBX_txn *txn, const bool merge) { if (stage == MDBX_MC_WAIT4EOT /* Cursor was closed by user */) mc->mc_signature = stage /* Promote closed state to parent txn */; else if (merge) { - /* Preserve changes from nested to parent txn */ + /* Restore pointers to parent txn */ mc->mc_next = bk->mc_next; mc->mc_backup = bk->mc_backup; mc->mc_txn = bk->mc_txn; - *bk->mc_db = *mc->mc_db; mc->mc_db = bk->mc_db; - *bk->mc_dbistate = *mc->mc_dbistate; mc->mc_dbistate = bk->mc_dbistate; if (mx) { if (mx != bk->mc_xcursor) {