Commit Graph

39 Commits

Author SHA1 Message Date
Leo Yuriev
7e68254051 mdbx: mdb_chk - don't close dbi-handles, set_maxdbs() instead. 2016-12-21 20:30:33 +03:00
Leo Yuriev
e381191c0f mdbx: fix typo.
Change-Id: I46344bf13a71b04b32d84bf0e0bc0a34ae6ef162
2016-11-27 12:56:27 +03:00
Leo Yuriev
ff70f5feb0 mdbx: avoid large '.data' section in mdbx_chk.
Initializes walk-array in runtime, for placing it
in the '.bss' section instead of '.data'.

Change-Id: I5bd1d9cabd2094f8ae517d91488840ce12844bfa
2016-11-27 11:08:55 +03:00
Leo Yuriev
43d87b4d97 mdbx: move to the OpenLDAP Public License.
Finally for https://github.com/ReOpen/libmdbx/issues/3
2016-09-27 13:44:23 +03:00
Leo Yuriev
9c5d029417 mdbx: clarify copyright and license.
Change-Id: Ib1b9516ce09497559937f749d520719046c5b7e6
2016-06-09 13:21:20 +03:00
Leo Yuriev
535dd9eb8c mdbx: reporting 'reading' -> 'detaited'.
Change-Id: I0a88e1b27458e2aba7d6f5249ed779af3dda3a0f
2016-04-27 20:06:26 +03:00
Leo Yuriev
3a8db9fed3 mdbx: -Wextra and fixes.
Change-Id: I9f373e66f8f5f7cf3b29b5246eb2c67e4a49a460
2016-04-19 11:59:36 +03:00
Leo Yuriev
a0435cfd71 mdbx: mdbx_chk - empty freedb record isn't an error.
Change-Id: Ic3e2d2d266b23e5bdd4f5ec5062cfb9c07f162c7
2016-02-09 09:28:23 +03:00
Leo Yuriev
a2db88baf6 mdbx: 2016 Copyright.
Change-Id: I0bc1bab1ddef1faaaad9fae68691f7d8197e697d
2016-02-01 21:06:27 +03:00
Leo Yuriev
f3043badc5 mdbx: tools/tests - fix minor memleaks (for CI with Valgrind).
Change-Id: I0e2217d568259f26cd7c4da800a13577962742f7
2015-11-19 19:05:02 +03:00
Leo Yuriev
68171d5f5d lmdb: provide both interfaces - advanced 'mdbx' and original 'lmdb'. 2015-10-13 23:50:25 +03:00
Leo Yuriev
1b78961cf6 lmdb: fix clang warnings.
Change-Id: I6586b44c21872e7a1e128d0053837b73ed4448ec
2015-09-06 11:30:16 +03:00
Leo Yuriev
16a30be8fc lmdb: minor refine mdb_chk output,
mostly for 'zero size-of-entry' error.

Change-Id: I0f7ae514860ea05179fd929b76f78ba843902e92
2015-09-03 17:26:23 +03:00
Leo Yuriev
f7d8812e6c lmdb: n-entries info from b-tree traversal in mdb_chk.
Change-Id: Ic9343dcdba976ac51c8f5776d2f7c9fed59da8e0
2015-09-02 17:53:48 +03:00
Leo Yuriev
9106e80fba lmdb: refine output of mdb_chk.
Change-Id: Ic4982e5f4df313f3226e49444951d08fcd6ea2d5
2015-09-02 16:19:13 +03:00
Leo Yuriev
15e0600b6c lmdb: major rework of traversal b-tree for mdb_chk.
Change-Id: I9d382516f76092f44fc1a12d7554039582b87656
2015-09-02 16:19:12 +03:00
Leo Yuriev
8ff2458003 lmdb: refine and flush output in mdb_chk.
Change-Id: Ia3c744918f73de4648c088ec6b56d44860378447
2015-09-01 15:14:00 +03:00
Leo Yuriev
fd4163d784 lmdb: mdb_chk informs about elapsed time.
Change-Id: I8066563b1c427e48179d7163a534bc242037f4cc
2015-09-01 13:43:22 +03:00
Leo Yuriev
de0cf8dfbb lmdb: refine exit-codes in mdb_chk.
Change-Id: I003ff0d887e3e0fb0439d201efcf4a76e8e69aac
2015-09-01 13:31:03 +03:00
Leo Yuriev
e7f58da2ac lmdb: support for a utterly no-sync mode,
by combination of MDB_NOSYNC and MDB_MAPASYNC.

Change-Id: I3e2d6c8f044a7522436dab4d0818d4d59b78b78d
2015-09-01 12:15:59 +03:00
Leo Yuriev
e955d64ebf lmdb: made mdb_load compatible with mdb_dump.
Ignores 'duplicates=' and 'db_pagesize=',
drops 'duplicates=' from mdb_dump and mdb_chk.

Change-Id: I295d19c8382fee1d5779b047aec5220788e5dd9c
2015-08-31 23:28:05 +03:00
Leo Yuriev
1be4140abf lmdb: mdb_chk allows interruption of b-tree travesersal.
Change-Id: Ia59236dcb575203baebf9e65310cdf1e700c33ce
2015-08-31 21:43:00 +03:00
Leo Yuriev
37b3629329 lmdb: '-s' option for mdb_chk to processing only a specific subdb.
Change-Id: Iad44204a9cadde3620de98194aa31f7420c8a2aa
2015-08-31 21:34:57 +03:00
Leo Yuriev
69beb1525f lmdb: '-d' option to mdb_chk for disabling b-tree traversal.
Change-Id: Ifd3bb0d93a4fa6d93f46b547fd73ee92dc331418
2015-08-31 20:58:41 +03:00
Leo Yuriev
5856a6bb6e lmdb: output subtotal % info for each dbi-table.
Change-Id: I897d9fcdf9df4149045a0867a982716bfe7acbe4
2015-08-20 01:11:52 +03:00
Leo Yuriev
ad8c4a19bb lmdb: fix segfault in mdb_chk when mdb_env_open() failed.
Change-Id: If72d35518c2d4dd33d284049e00fc633e65ee52c
2015-08-13 18:30:03 +03:00
Leo Yuriev
65555273aa lmdb: rework mdb_chk for cooperative and shared modes.
Change-Id: I22ff9721c43da00b1a514ec85adc664829140506
2015-08-13 18:30:02 +03:00
Leo Yuriev
c70999052c lmdb: rework error handling inside mdb_chk.
Change-Id: I226f7b4bccb18261425799ea78bf43436867c7d4
2015-08-13 18:30:02 +03:00
Leo Yuriev
96d69e3fa1 lmdb: added mdb_env_open_ex() and exclusive/monopoly mode for mdb_chk.
Change-Id: I867e7f17924ffecb744440e95db96c0a7411d6ef
2015-08-13 18:30:02 +03:00
Leo Yuriev
59b74d5df0 lmdb: added write-lock mode for mdb_chk.
Change-Id: I9e28f2153bdcb190c1e4fa502242aa6d4f78787b
2015-08-06 22:16:41 +03:00
Leo Yuriev
0ee96ec09b lmdb: fix mdb_chk doesn't account an errors, but just report it.
Change-Id: Ib70784ed7dff5ca67092b2fee556ae9f5a7aa3a6
2015-08-06 22:16:34 +03:00
Leo Yuriev
a243a38aa6 lmdb: adding page-space usage info to mdb_chk.
Change-Id: I12dcdb54894a362d41612e973f983cb4e067520c
2015-08-05 22:59:18 +03:00
Leo Yuriev
e2127a6e57 lmdb: check multi-value ordering in mdb_chk.
Change-Id: Ie4e1b0f795fa84c96a4f505cece14607a95e7c9e
2015-08-05 00:45:57 +03:00
Leo Yuriev
41d38a1e4d lmdb: fix format-string for 'entries' in mdb_chk.
Change-Id: I5a8c04e79416f22b64505be536b666620a9cce41
2015-08-04 22:34:16 +03:00
Leo Yuriev
2fdf96cf4f lmdb: ITS#8181 reflect changes for mdb_chk.
Change-Id: I9c7a1323af5d62b549bc2430c8cb8bf5c5686bee
2015-08-04 13:57:14 +03:00
Leo Yuriev
104312d15e lmdb: update mdb_chk for checkpoints, minor cosmetics.
This is 9/9 for https://github.com/ReOpen/ReOpenLDAP/issues/1
and https://github.com/ReOpen/ReOpenLDAP/issues/2

Change-Id: I05f59313b4346c08bcd63d62e6c48a5f53c47852
2015-05-21 21:40:39 +03:00
Leo Yuriev
bd05dd24ab lmdb: fix mdb_chk for case MainDB's records isn't a sub-db.
Change-Id: I3a4ae1f50972fde6edab828b58199dde9b84550c
2015-05-09 01:00:27 +03:00
Leo Yuriev
f2703156f0 lmdb: mdb: b-tree walk, page-map check in mdb_chk.
Change-Id: I6678b4d891c8fbfbc49ed600212f4ade39e25282
2015-05-08 15:49:33 +03:00
Leo Yuriev
23720958b6 lmdb: mdb_chk tool (initial).
Change-Id: I7d31e0fb45ab56cf8d6df56939e5b3ded6b8e3e5
2015-05-08 03:47:17 +03:00