mdbx: const для транзакции в txn_take_gcprof().

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2024-12-28 09:38:08 +03:00
parent 26f6fd351a
commit df8b15f639
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ enum {
}; };
MDBX_INTERNAL int txn_end(MDBX_txn *txn, unsigned mode); MDBX_INTERNAL int txn_end(MDBX_txn *txn, unsigned mode);
MDBX_INTERNAL int txn_write(MDBX_txn *txn, iov_ctx_t *ctx); MDBX_INTERNAL int txn_write(MDBX_txn *txn, iov_ctx_t *ctx);
MDBX_INTERNAL void txn_take_gcprof(MDBX_txn *txn, MDBX_commit_latency *latency); MDBX_INTERNAL void txn_take_gcprof(const MDBX_txn *txn, MDBX_commit_latency *latency);
MDBX_INTERNAL void txn_merge(MDBX_txn *const parent, MDBX_txn *const txn, const size_t parent_retired_len); MDBX_INTERNAL void txn_merge(MDBX_txn *const parent, MDBX_txn *const txn, const size_t parent_retired_len);
/* env.c */ /* env.c */

View File

@ -395,7 +395,7 @@ void txn_merge(MDBX_txn *const parent, MDBX_txn *const txn, const size_t parent_
} }
} }
void txn_take_gcprof(MDBX_txn *txn, MDBX_commit_latency *latency) { void txn_take_gcprof(const MDBX_txn *txn, MDBX_commit_latency *latency) {
MDBX_env *const env = txn->env; MDBX_env *const env = txn->env;
if (MDBX_ENABLE_PROFGC) { if (MDBX_ENABLE_PROFGC) {
pgop_stat_t *const ptr = &env->lck->pgops; pgop_stat_t *const ptr = &env->lck->pgops;