mdb_copy Struct Reference
[LMDB Internals]

Data Fields

MDB_envmc_env
MDB_txnmc_txn
pthread_mutex_t mc_mutex
pthread_cond_t mc_cond
char * mc_wbuf [2]
char * mc_over [2]
int mc_wlen [2]
int mc_olen [2]
pgno_t mc_next_pgno
HANDLE mc_fd
int mc_toggle
int mc_new
volatile int mc_error

Detailed Description

State needed for a double-buffering compacting copy.


Field Documentation

pthread_cond_t mdb_copy::mc_cond

Condition variable for mc_new

Buffer number in provider

(0-2 buffers to write) | (MDB_EOF at end)

volatile int mdb_copy::mc_error

Error code. Never cleared if set. Both threads can set nonzero to fail the copy. Not mutex-protected, LMDB expects atomic int.


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on 3 Apr 2026 for LMDB by  doxygen 1.6.1