Commit Graph

2999 Commits

Author SHA1 Message Date
Leo Yuriev
340da0fd7a mdbx: yota's test.
2014 (C) Copyright Vladimir Romanov, https://www.facebook.com/vvromanov

Change-Id: Ia4cd6cbdd7b7a25c0b217b968337cfd9af721380
2016-03-13 18:24:47 +03:00
Leo Yuriev
c05fb6862d mdbx: mdbx_env_set_syncbytes() only for MDBX-mode.
Change-Id: I7836d4b7b538fc15407122ea40c36a2f8a5ae033
2016-03-12 20:45:16 +03:00
Leo Yuriev
eb429da210 mdbx: minors.
Change-Id: Id1d8ed5bf6ce253dc73b2e69e8701bffa83f7e12
2016-03-12 20:44:20 +03:00
Howard Chu
ded1ada9eb mdbx: backport - Tweak MDB_PREV_MULTIPLE for uninit'd cursor.
Change-Id: I1f07e7c4d80631a1a0b2c70a936ef7b458baa11a
2016-03-03 15:51:46 +03:00
Leo Yuriev
9d775b0a36 mdbx: rework support for ThreadSanitizer.
Change-Id: I6a1cc980fa835215d2051f68bbf8580b747e6d6b
2016-03-03 15:51:46 +03:00
Leo Yuriev
c809b2e12c mdbx: MDB_PAGEPERTURB instead of LDAP_MEMORY_DEBUG.
Change-Id: I87d2c0518c11f8ff27e5064b4d59900dfd2131fc
2016-03-03 14:38:44 +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
c9642d1082 mdbx: MDB_PAGEPERTURB.
Change-Id: Id78304cb1f5caa3231e69388f6ce29a431e39976
2016-02-09 09:28:18 +03:00
Leo Yuriev
0a8e59c314 mdbx: NDEBUG.
Change-Id: I5c8edcad6fc7a0f3f7e4842f4a92fdb685e2e132
2016-02-09 09:20:59 +03:00
Howard Chu
0deb198ca2 mdbx: backport - release 0.9.18
Change-Id: I132a004c109facfa481a86a09eb0c3e454c294a8
2016-02-09 06:28:54 +03:00
Leo Yuriev
a47cdfebba mdbx: fix percent in mdbx_txn_straggler().
fix 75ab3716fb

Change-Id: Ia63d89d189640c617da6e5e5c4567f5f8a2b84f8
2016-02-08 13:10:17 +03:00
Leo Yuriev
b949bbd169 mdbx: cleanup inherited errno's bug.
Change-Id: I0635f4e4a224ff4516859d12cc72b77aac41beec
2016-02-04 06:23:55 +03:00
Leo Yuriev
425ac1cde6 mdbx: fix madvise() flags, it is not a bitmask.
Change-Id: Ie5109779dc596190c467dcd6e84a1684e71575f5
2016-02-04 06:23:55 +03:00
Howard Chu
0e508f0d3b mdbx: backport - ITS#8363 Fix off-by-one in mdb_midl_shrink().
Change-Id: I92a2ed30703f6cd5e91c7f380f1954da4cbe896b
2016-02-01 21:08:28 +03:00
Leo Yuriev
a2db88baf6 mdbx: 2016 Copyright.
Change-Id: I0bc1bab1ddef1faaaad9fae68691f7d8197e697d
2016-02-01 21:06:27 +03:00
Howard Chu
77d482ef1e mdbx: backport - Happy New Year 2016.
Change-Id: I856f00f5cc7ef9cff0c7e93257ddcbd074e02c55
2016-02-01 21:03:53 +03:00
Leo Yuriev
d2f2d57f00 mdbx: Merge branch 'devel'. 2016-01-25 20:14:15 +03:00
Leo Yuriev
463b0dce29 mdbx: pull CHANGES-log from LMDB.
Change-Id: I083f58e104c2737f8d8da878109ba7b4741fb4c5
2016-01-25 18:39:49 +03:00
Howard Chu
e6ff451d84 mdbx: backport - ITS#8355 fix subcursors.
make sure C_DEL gets reset in subcursor after it moves.

Change-Id: I334cadcd981e7578d98e326e6bd785bed709a83a
2016-01-25 18:36:49 +03:00
Howard Chu
3b7a958fcd mdbx: backport - Update WRITEMAP doc.
Change-Id: I5c4b72e8c64dfe4ed04ca579f3545191165ef20a
2016-01-25 18:27:58 +03:00
Leo Yuriev
9d14f6a2ac mdbx: avoid tsan-collision by mdb_env_reader_destr().
Change-Id: Ic87e67db6337e2e1fe1bc21d5e2bbde64b21935b
2016-01-25 15:21:23 +03:00
Leo Yuriev
f8941daa0a mdbx: Merge branch 'devel'. 2016-01-14 00:28:31 +03:00
Leo Yuriev
c9c0549b4f mdbx: fix madvise() flags.
Change-Id: If0ed3cd972fbc0caea486656ae05526aa2022574
2016-01-14 00:27:37 +03:00
Hallvard Furuseth
2477997658 mdbx: backport - lmdb.h Caveats: Reserved vs. actual mem/disk usage.
Change-Id: Ia7c250e14bd5a59c8600f74c5843ad0bb37ebd33
2016-01-14 00:27:37 +03:00
Leo Yuriev
4ad241b864 mdbx: msync only used part instead of entire db.
Change-Id: I55611613f12d6e01599133336df183ada4d2de3d
2016-01-14 00:27:30 +03:00
Leo Yuriev
39908bb0a6 mdbx: adds mdb_chk.1 to tooltag (man/Doxygen).
Change-Id: I887b9792fa7e304ec1251acce7e3d52e3aabbc31
2016-01-09 23:16:35 +03:00
Leo Yuriev
d538145711 mdbx: pull CHANGES from LMDB.
Change-Id: I8f1ffc63f5e4ef0919702f2b176c70ba6aeb8efe
2016-01-09 22:35:54 +03:00
Leo Yuriev
f1ceb753e5 mdbx: Merge branch 'master' into devel. 2016-01-09 22:34:05 +03:00
Howard Chu
ba29ae2cd2 mdbx: backport - Add MDB_PREV_MULTIPLE.
Logical counterpart to GET_MULTIPLE, NEXT_MULTIPLE

Change-Id: I3f42cb1599997e79dbdc76bcf23b78314ededfc9
2016-01-09 22:28:39 +03:00
Leo Yuriev
c81942a2a6 mdbx: pull CHANGES from LMDB.
Change-Id: I008d23776ea78352de582f7e93446edbed75d094
2015-12-25 19:49:22 +03:00
Howard Chu
926db32902 mdbx: backport - MDB_RESERVE doc.
Add mdb_put text to mdb_cursor_put description for people who
fail to draw logical conclusions.

Change-Id: I7d17178ad3b0d2ada721f3027af7e70f478c0da1
2015-12-25 19:49:11 +03:00
Howard Chu
ebaf7c8d41 mdbx: backport - Add Getting Started doc.
Change-Id: I41847e550dc8246fca293bef3d103c35d43f3001
2015-12-25 19:49:01 +03:00
Leo Yuriev
3ce58a015f mdbx: Merge branch 'devel'. 2015-12-16 22:00:38 +03:00
Leo Yuriev
c0c3c1b688 mdbx: force gdb-level3 for debuginfo.
Change-Id: Ie11630f4c56482862d765764e5e0c4c9564a476b
2015-12-16 21:35:43 +03:00
Leo Yuriev
7086623d9f mdbx: drops include <ansidecl.h>
Change-Id: Ie7253b2515a6a4cd4a0d976f22d4713f99126ef2
2015-12-16 20:33:56 +03:00
Hallvard Furuseth
b067025e8b mdbx: backport - Catch strdup failure in mdb_dbi_open().
Change-Id: I754e8c966cc093f162cfbb33d3b179585e3ea4a2
2015-12-15 12:45:54 +03:00
Leo Yuriev
c0566f94c4 mdbx: Merge branch 'devel'. 2015-12-13 20:03:42 +03:00
Leo Yuriev
efda814f7e mdbx: minor flags cleanup.
Change-Id: I6ebb0d76963c0bf41051ca97fba4ec6f564519e2
2015-12-13 19:49:53 +03:00
Howard Chu
3df7c4b1e1 mdbx: backport - ITS#8336 fix page_search_root assert on FreeDB.
Let "illegal" branch pages thru on the FreeDB - the condition
is only temporary and will be fixed by the time rebalance finishes.

Change-Id: I5d34fd96096f88638db55166aba7194dcef7e429
2015-12-13 19:49:22 +03:00
Hallvard Furuseth
4fcbaa44f3 mdbx: backport - ITS#8334 Fix MDB_APPENDDUP vs. rewrite(single item).
Change-Id: I7742bd2e75ef670dac31a46d270a96ee28c20639
2015-12-13 19:49:22 +03:00
Leo Yuriev
b848f5552f mdbx: pull CHANGES from LMDB.
Change-Id: I937ca30a04f8dfc2fb923ccb440da2e497185ca3
2015-12-13 19:48:44 +03:00
Leo Yuriev
297d9e71ac mdbx: Merge branch 'tsan-cleanup' into devel.
Some work as a part of https://github.com/ReOpen/ReOpenLDAP/issues/62
2015-12-13 19:41:19 +03:00
Leo Yuriev
886fa96a5d mdbx: tsan 'edge-mutex'.
Change-Id: If6fe58d9e1e334fbdaec529a14a78f5ebc6d8103
2015-12-13 19:41:08 +03:00
Leo Yuriev
24449c2a07 mdbx: avoid tsan-trap in mdb_txn_renew0() by me_live_reader.
Change-Id: I70f173d3e77c9cc84881c86e8fc64ae2a4906f0b
2015-12-13 19:41:07 +03:00
Leo Yuriev
f38bb9621f mdbx: avoid tsan-trap in mdb_find_oldest().
Change-Id: Icaaf032fd3600b2ee61feb39d32af60c4e3bb0d5
2015-12-13 19:41:07 +03:00
Leo Yuriev
75ab3716fb mdbx: avoid tsan-trap in mdbx_txn_straggler().
Change-Id: Ib62cdd5592e6001a1734c321f3801722e4dcf7e4
2015-12-13 19:41:07 +03:00
Leo Yuriev
4e5d5ef935 mdbx: avoid tsan-trap in mdb_meta_head_r().
Change-Id: I594c13e1fe908f8afdc663d349cfc4cf634bba77
2015-12-13 19:41:07 +03:00
Leo Yuriev
5bc0a76899 mdbx: avoid tsan-trap in mdb_txn_renew0() by mti_txnid.
Change-Id: Ia91bb913fc99880ec34fd0bf6fc9396555c6a56f
2015-12-13 19:41:07 +03:00
Leo Yuriev
50c480e2de mdbx: avoid tran-trap in mdb_txn_renew0() by mt_flags.
Avoid read txn-flags from shared write TXN (e.g. env->me_tnx0->mt_flags)
without holding a write-mutex.

Change-Id: I3a3a64597f69b7df205043c567a51fe509247826
2015-12-13 19:41:07 +03:00
Leo Yuriev
6069149b05 mdbx: basic support for ThreadSanitizer (tsan).
Change-Id: Ia23751ac569b64e94cd6f5e6910f77a203259fa3
2015-12-13 19:41:07 +03:00