From 686c908a9564b62d44763f1eec61fe6bb291440a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Wed, 12 Oct 2022 13:48:44 +0300 Subject: [PATCH] =?UTF-8?q?mdbx:=20=D0=B1=D0=BE=D0=BB=D0=B5=D0=B5=20=D0=BE?= =?UTF-8?q?=D1=81=D1=82=D0=BE=D1=80=D0=BE=D0=B6=D0=BD=D0=BE=D0=B5=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B5=D0=BE=D0=B1=D1=80=D0=B0=D0=B7=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BA=20=D1=82=D0=B8=D0=BF=D1=83=20`mdbx?= =?UTF-8?q?=5Ftid=5Ft`=20=D0=B4=D0=BB=D1=8F=20=D1=83=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=B0=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BF=D1=80=D0=B5=D0=B4?= =?UTF-8?q?=D1=83=D0=BF=D1=80=D0=B5=D0=B6=D0=B4=D0=B5=D0=BD=D0=B8=D0=B9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core.c b/src/core.c index a19dbb6e..479ca8de 100644 --- a/src/core.c +++ b/src/core.c @@ -21704,8 +21704,8 @@ __cold int mdbx_reader_list(const MDBX_env *env, MDBX_reader_list_func *func, reader_pages_retired)) : 0; } - rc = func(ctx, ++serial, (unsigned)i, pid, (mdbx_tid_t)tid, txnid, lag, - bytes_used, bytes_retained); + rc = func(ctx, ++serial, (unsigned)i, pid, (mdbx_tid_t)((intptr_t)tid), + txnid, lag, bytes_used, bytes_retained); if (unlikely(rc != MDBX_SUCCESS)) break; } @@ -21940,7 +21940,7 @@ __cold static txnid_t kick_longlived_readers(MDBX_env *env, ? pgno2bytes(env, (pgno_t)(head_retired - hold_retired)) : 0; int rc = - callback(env, env->me_txn, pid, (mdbx_tid_t)tid, laggard, + callback(env, env->me_txn, pid, (mdbx_tid_t)((intptr_t)tid), laggard, (gap < UINT_MAX) ? (unsigned)gap : UINT_MAX, space, retry); if (rc < 0) /* hsr returned error and/or agree MDBX_MAP_FULL error */