Monero
Loading...
Searching...
No Matches
mdb_copy Struct Reference
Collaboration diagram for mdb_copy:

Public Attributes

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.

Member Data Documentation

◆ mc_cond

pthread_cond_t mdb_copy::mc_cond

Condition variable for mc_new

◆ mc_env

MDB_env* mdb_copy::mc_env

◆ mc_error

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.

◆ mc_fd

HANDLE mdb_copy::mc_fd

◆ mc_mutex

pthread_mutex_t mdb_copy::mc_mutex

◆ mc_new

int mdb_copy::mc_new

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

◆ mc_next_pgno

pgno_t mdb_copy::mc_next_pgno

◆ mc_olen

int mdb_copy::mc_olen[2]

◆ mc_over

char* mdb_copy::mc_over[2]

◆ mc_toggle

int mdb_copy::mc_toggle

Buffer number in provider

◆ mc_txn

MDB_txn* mdb_copy::mc_txn

◆ mc_wbuf

char* mdb_copy::mc_wbuf[2]

◆ mc_wlen

int mdb_copy::mc_wlen[2]

The documentation for this struct was generated from the following file: