mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-15 18:54:29 +08:00
mdbx: const
для транзакции в txn_take_gcprof()
.
This commit is contained in:
parent
26f6fd351a
commit
df8b15f639
@ -68,7 +68,7 @@ enum {
|
||||
};
|
||||
MDBX_INTERNAL int txn_end(MDBX_txn *txn, unsigned mode);
|
||||
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);
|
||||
|
||||
/* env.c */
|
||||
|
@ -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;
|
||||
if (MDBX_ENABLE_PROFGC) {
|
||||
pgop_stat_t *const ptr = &env->lck->pgops;
|
||||
|
Loading…
x
Reference in New Issue
Block a user