Commit Graph

20 Commits

Author SHA1 Message Date
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