mirror of
https://github.com/isar/libmdbx.git
synced 2025-02-01 01:48:21 +08:00
daa7f04f61
The stable release with fixes for large and huge databases sized of 4..128 TiB. Acknowledgements: ----------------- - Ledgerwatch, Binance and Positive Technologies teams for reporting, assistance in investigation and testing. - Alex Sharov for reporting, testing and provide resources for remote debugging/investigation. - Kris Zyp for Deno support. New features, extensions and improvements: ------------------------------------------ - Added treating the `UINT64_MAX` value as maximum for given option inside `mdbx_env_set_option()`. - Added `to_hex/to_base58/to_base64::output(std::ostream&)` overloads without using temporary string objects as buffers. - Added `--geometry-jitter=YES|no` option to the test framework. - Added support for [Deno](https://deno.land/) support by [Kris Zyp](https://github.com/kriszyp). Fixes: ------ - Fixed handling `MDBX_opt_rp_augment_limit` for GC's records from huge transactions (Erigon/Akula/Ethereum). - [Fixed](https://github.com/erthink/libmdbx/issues/258) build on Android (avoid including `sys/sem.h`). - [Fixed](https://github.com/erthink/libmdbx/pull/261) missing copy assignment operator for `mdbx::move_result`. - Fixed missing `&` for `std::ostream &operator<<()` overloads. - Fixed unexpected `EXDEV` (Cross-device link) error from `mdbx_env_copy()`. - Fixed base64 encoding/decoding bugs in auxillary C++ API. - Fixed overflow of `pgno_t` during checking PNL on 64-bit platforms. - [Fixed](https://github.com/erthink/libmdbx/issues/260) excessive PNL checking after sort for spilling. - Reworked checking `MAX_PAGENO` and DB upper-size geometry limit. - [Fixed](https://github.com/erthink/libmdbx/issues/265) build for some combinations of versions of MSVC and Windows SDK. Minors: ------- - Added workaround for CLANG bug [D79919/PR42445](https://reviews.llvm.org/D79919). - Fixed build test on Android (using `pthread_barrier_t` stub). - Disabled C++20 concepts for CLANG < 14 on Android. - Fixed minor `unused parameter` warning. - Added CI for Android. - Refine/cleanup internal logging. - Refined line splitting inside hex/base58/base64 encoding to avoid `\n` at the end. - Added workaround for modern libstdc++ with CLANG < 4.x - Relaxed txn-check rules for auxiliary functions. - Clarified a comments and descriptions, etc. - Using the `-fno-semantic interposition` option to reduce the overhead to calling self own public functions. Signed-off-by: Леонид Юрьев (Leonid Yuriev) <leo@yuriev.ru>
87 lines
2.4 KiB
Groff
87 lines
2.4 KiB
Groff
.\" Copyright 2015-2022 Leonid Yuriev <leo@yuriev.ru>.
|
|
.\" Copyright 2012-2015 Howard Chu, Symas Corp. All Rights Reserved.
|
|
.\" Copyright 2015,2016 Peter-Service R&D LLC <http://billing.ru/>.
|
|
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
|
|
.TH MDBX_STAT 1 "2022-02-02" "MDBX 0.11.4"
|
|
.SH NAME
|
|
mdbx_stat \- MDBX environment status tool
|
|
.SH SYNOPSIS
|
|
.B mdbx_stat
|
|
[\c
|
|
.BR \-V ]
|
|
[\c
|
|
.BR \-q ]
|
|
[\c
|
|
.BR \-p ]
|
|
[\c
|
|
.BR \-e ]
|
|
[\c
|
|
.BR \-f [ f [ f ]]]
|
|
[\c
|
|
.BR \-r [ r ]]
|
|
[\c
|
|
.BR \-a \ |
|
|
.BI \-s \ subdb\fR]
|
|
.BR \ dbpath
|
|
[\c
|
|
.BR \-n ]
|
|
.SH DESCRIPTION
|
|
The
|
|
.B mdbx_stat
|
|
utility displays the status of an MDBX environment.
|
|
.SH OPTIONS
|
|
.TP
|
|
.BR \-V
|
|
Write the library version number to the standard output, and exit.
|
|
.TP
|
|
.BR \-q
|
|
Be quiet.
|
|
.TP
|
|
.BR \-p
|
|
Display overall statistics of page operations of all (running, completed
|
|
and aborted) transactions in the current multi-process session (since the
|
|
first process opened the database after everyone had previously closed it).
|
|
.TP
|
|
.BR \-e
|
|
Display information about the database environment.
|
|
.TP
|
|
.BR \-f
|
|
Display information about the environment GC.
|
|
If \fB\-ff\fP is given, summarize each GC/freelist entry.
|
|
If \fB\-fff\fP is given, display the full list of page IDs in the GC/freelist.
|
|
.TP
|
|
.BR \-r
|
|
Display information about the environment reader table.
|
|
Shows the process ID, thread ID, and transaction ID for each active
|
|
reader slot. The process ID and transaction ID are in decimal, the
|
|
thread ID is in hexadecimal. The transaction ID is displayed as "-"
|
|
if the reader does not currently have a read transaction open.
|
|
If \fB\-rr\fP is given, check for stale entries in the reader
|
|
table and clear them. The reader table will be printed again
|
|
after the check is performed.
|
|
.TP
|
|
.BR \-a
|
|
Display the status of all of the subdatabases in the environment.
|
|
.TP
|
|
.BR \-s \ subdb
|
|
Display the status of a specific subdatabase.
|
|
.TP
|
|
.BR \-n
|
|
Display the status of an MDBX database which does not use subdirectories.
|
|
This is legacy option. For now MDBX handles this automatically
|
|
for existing databases, but may be required while creating new.
|
|
|
|
.SH DIAGNOSTICS
|
|
Exit status is zero if no errors occur.
|
|
Errors result in a non-zero exit status and
|
|
a diagnostic message being written to standard error.
|
|
.SH "SEE ALSO"
|
|
.BR mdbx_chk (1),
|
|
.BR mdbx_copy (1),
|
|
.BR mdbx_dump (1),
|
|
.BR mdbx_load (1)
|
|
.BR mdbx_drop (1)
|
|
.SH AUTHOR
|
|
Howard Chu of Symas Corporation <http://www.symas.com>,
|
|
Leonid Yuriev <https://github.com/erthink>
|