2017-01-11 22:39:08 +08:00
|
|
|
.TH MDB_STAT 1 "2015/09/30" "LMDB 0.9.17"
|
2021-01-12 03:21:58 +08:00
|
|
|
.\" Copyright 2012-2021 Howard Chu, Symas Corp. All Rights Reserved.
|
2012-12-20 05:09:56 +08:00
|
|
|
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
|
|
|
|
.SH NAME
|
|
|
|
mdb_stat \- LMDB environment status tool
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B mdb_stat
|
|
|
|
[\c
|
2014-06-20 20:33:31 +08:00
|
|
|
.BR \-V ]
|
|
|
|
[\c
|
2012-12-20 05:09:56 +08:00
|
|
|
.BR \-e ]
|
|
|
|
[\c
|
2013-02-17 02:07:16 +08:00
|
|
|
.BR \-f [ f [ f ]]]
|
2012-12-20 05:09:56 +08:00
|
|
|
[\c
|
|
|
|
.BR \-n ]
|
|
|
|
[\c
|
2013-07-19 01:40:21 +08:00
|
|
|
.BR \-r [ r ]]
|
2013-07-18 22:41:11 +08:00
|
|
|
[\c
|
2012-12-20 05:09:56 +08:00
|
|
|
.BR \-a \ |
|
|
|
|
.BI \-s \ subdb\fR]
|
2015-10-01 01:11:20 +08:00
|
|
|
.BR \ envpath
|
2012-12-20 05:09:56 +08:00
|
|
|
.SH DESCRIPTION
|
|
|
|
The
|
|
|
|
.B mdb_stat
|
|
|
|
utility displays the status of an LMDB environment.
|
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
2014-06-20 20:33:31 +08:00
|
|
|
.BR \-V
|
|
|
|
Write the library version number to the standard output, and exit.
|
|
|
|
.TP
|
2012-12-20 05:09:56 +08:00
|
|
|
.BR \-e
|
|
|
|
Display information about the database environment.
|
|
|
|
.TP
|
|
|
|
.BR \-f
|
2013-02-17 02:07:16 +08:00
|
|
|
Display information about the environment freelist.
|
|
|
|
If \fB\-ff\fP is given, summarize each freelist entry.
|
|
|
|
If \fB\-fff\fP is given, display the full list of page IDs in the freelist.
|
2012-12-20 05:09:56 +08:00
|
|
|
.TP
|
|
|
|
.BR \-n
|
|
|
|
Display the status of an LMDB database which does not use subdirectories.
|
|
|
|
.TP
|
2013-07-18 22:41:11 +08:00
|
|
|
.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.
|
2013-07-19 01:40:21 +08:00
|
|
|
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.
|
2013-07-18 22:41:11 +08:00
|
|
|
.TP
|
2012-12-20 05:09:56 +08:00
|
|
|
.BR \-a
|
|
|
|
Display the status of all of the subdatabases in the environment.
|
|
|
|
.TP
|
|
|
|
.BR \-s \ subdb
|
|
|
|
Display the status of a specific subdatabase.
|
|
|
|
.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 mdb_copy (1)
|
|
|
|
.SH AUTHOR
|
|
|
|
Howard Chu of Symas Corporation <http://www.symas.com>
|