mdb_stat.1 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. .TH MDB_STAT 1 "2015/09/30" "LMDB 0.9.17"
  2. .\" Copyright 2012-2021 Howard Chu, Symas Corp. All Rights Reserved.
  3. .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
  4. .SH NAME
  5. mdb_stat \- LMDB environment status tool
  6. .SH SYNOPSIS
  7. .B mdb_stat
  8. [\c
  9. .BR \-V ]
  10. [\c
  11. .BR \-e ]
  12. [\c
  13. .BR \-f [ f [ f ]]]
  14. [\c
  15. .BR \-n ]
  16. [\c
  17. .BR \-r [ r ]]
  18. [\c
  19. .BR \-a \ |
  20. .BI \-s \ subdb\fR]
  21. .BR \ envpath
  22. .SH DESCRIPTION
  23. The
  24. .B mdb_stat
  25. utility displays the status of an LMDB environment.
  26. .SH OPTIONS
  27. .TP
  28. .BR \-V
  29. Write the library version number to the standard output, and exit.
  30. .TP
  31. .BR \-e
  32. Display information about the database environment.
  33. .TP
  34. .BR \-f
  35. Display information about the environment freelist.
  36. If \fB\-ff\fP is given, summarize each freelist entry.
  37. If \fB\-fff\fP is given, display the full list of page IDs in the freelist.
  38. .TP
  39. .BR \-n
  40. Display the status of an LMDB database which does not use subdirectories.
  41. .TP
  42. .BR \-r
  43. Display information about the environment reader table.
  44. Shows the process ID, thread ID, and transaction ID for each active
  45. reader slot. The process ID and transaction ID are in decimal, the
  46. thread ID is in hexadecimal. The transaction ID is displayed as "-"
  47. if the reader does not currently have a read transaction open.
  48. If \fB\-rr\fP is given, check for stale entries in the reader
  49. table and clear them. The reader table will be printed again
  50. after the check is performed.
  51. .TP
  52. .BR \-a
  53. Display the status of all of the subdatabases in the environment.
  54. .TP
  55. .BR \-s \ subdb
  56. Display the status of a specific subdatabase.
  57. .SH DIAGNOSTICS
  58. Exit status is zero if no errors occur.
  59. Errors result in a non-zero exit status and
  60. a diagnostic message being written to standard error.
  61. .SH "SEE ALSO"
  62. .BR mdb_copy (1)
  63. .SH AUTHOR
  64. Howard Chu of Symas Corporation <http://www.symas.com>