mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-22 07:58:21 +08:00
tools: mdbx_chk - don't 'rolled-back' in cooperative more.
This commit is contained in:
parent
bd70135db1
commit
dd33bea1d8
@ -73,6 +73,7 @@ static __attribute__((constructor)) void init_walk(void) {
|
|||||||
|
|
||||||
uint64_t total_unused_bytes;
|
uint64_t total_unused_bytes;
|
||||||
int exclusive = 2;
|
int exclusive = 2;
|
||||||
|
int envflags = MDBX_RDONLY;
|
||||||
|
|
||||||
MDBX_env *env;
|
MDBX_env *env;
|
||||||
MDBX_txn *txn, *locktxn;
|
MDBX_txn *txn, *locktxn;
|
||||||
@ -686,7 +687,8 @@ void verbose_meta(int num, txnid_t txnid, uint64_t sign) {
|
|||||||
if (stay)
|
if (stay)
|
||||||
print(", stay");
|
print(", stay");
|
||||||
|
|
||||||
if (txnid > envinfo.me_recent_txnid)
|
if (txnid > envinfo.me_recent_txnid &&
|
||||||
|
(exclusive || (envflags & MDBX_RDONLY) == 0))
|
||||||
print(", rolled-back %" PRIu64 " (%" PRIu64 " >>> %" PRIu64 ")",
|
print(", rolled-back %" PRIu64 " (%" PRIu64 " >>> %" PRIu64 ")",
|
||||||
txnid - envinfo.me_recent_txnid, txnid, envinfo.me_recent_txnid);
|
txnid - envinfo.me_recent_txnid, txnid, envinfo.me_recent_txnid);
|
||||||
print("\n");
|
print("\n");
|
||||||
@ -729,7 +731,6 @@ int main(int argc, char *argv[]) {
|
|||||||
int i, rc;
|
int i, rc;
|
||||||
char *prog = argv[0];
|
char *prog = argv[0];
|
||||||
char *envname;
|
char *envname;
|
||||||
int envflags = MDBX_RDONLY;
|
|
||||||
int problems_maindb = 0, problems_freedb = 0, problems_meta = 0;
|
int problems_maindb = 0, problems_freedb = 0, problems_meta = 0;
|
||||||
int dont_traversal = 0;
|
int dont_traversal = 0;
|
||||||
struct timespec timestamp_start, timestamp_finish;
|
struct timespec timestamp_start, timestamp_finish;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user