From 2fb5a5426427bd49f5e227e3173edd23914cbbf5 Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Sat, 3 Dec 2016 17:39:26 +0300 Subject: [PATCH] mdbx: minor simplify mc_signature. Change-Id: Ib3952853350d220dd62910bcd55ac74cf5f47886 --- mdb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mdb.c b/mdb.c index 302a4256..6a2782ff 100644 --- a/mdb.c +++ b/mdb.c @@ -7548,7 +7548,6 @@ mdb_xcursor_init1(MDB_cursor *mc, MDB_node *node) if (mx->mx_dbx.md_cmp == mdb_cmp_int && mx->mx_db.md_pad == sizeof(size_t)) mx->mx_dbx.md_cmp = mdb_cmp_clong; #endif */ - mc->mc_signature = MDBX_MC_SIGNATURE; } @@ -7587,6 +7586,7 @@ mdb_xcursor_init2(MDB_cursor *mc, MDB_xcursor *src_mx, int new_dupdata) static void mdb_cursor_init(MDB_cursor *mc, MDB_txn *txn, MDB_dbi dbi, MDB_xcursor *mx) { + mc->mc_signature = MDBX_MC_SIGNATURE; mc->mc_next = NULL; mc->mc_backup = NULL; mc->mc_dbi = dbi; @@ -7610,7 +7610,6 @@ mdb_cursor_init(MDB_cursor *mc, MDB_txn *txn, MDB_dbi dbi, MDB_xcursor *mx) if (*mc->mc_dbflag & DB_STALE) { mdb_page_search(mc, NULL, MDB_PS_ROOTONLY); } - mc->mc_signature = MDBX_MC_SIGNATURE; } int