]>
git.sur5r.net Git - openldap/log
Hallvard Furuseth [Sat, 4 Jul 2015 11:48:04 +0000 (13:48 +0200)]
Simpler mdb_txn_commit().
mt_env is always set.
Commit(mt_child) resets mt_child, so parent need not.
Hallvard Furuseth [Sat, 4 Jul 2015 11:48:03 +0000 (13:48 +0200)]
mdb_txn_begin() cleanup
Hallvard Furuseth [Sat, 4 Jul 2015 11:48:02 +0000 (13:48 +0200)]
mdb_drop0(): Omit scanning DUPSORT sub-DB leaves
Hallvard Furuseth [Sat, 4 Jul 2015 11:48:01 +0000 (13:48 +0200)]
Use mdb_cmp_long() for FREE_DBI
Hallvard Furuseth [Sat, 4 Jul 2015 11:42:41 +0000 (13:42 +0200)]
mdb_env_get_flags(): Hide internal flags
Hallvard Furuseth [Fri, 3 Jul 2015 21:07:30 +0000 (23:07 +0200)]
Support robust mutexes/locks. Add mdb_mutex_t etc.
Hallvard Furuseth [Fri, 3 Jul 2015 21:07:00 +0000 (23:07 +0200)]
Add MDB_USE_POSIX_MUTEX.
So far just to help aligning mdb.master and mdb.RE.
We'll make it an option later.
Hallvard Furuseth [Fri, 3 Jul 2015 21:02:12 +0000 (23:02 +0200)]
Whitespace (align with mdb.master)
leo@yuriev.ru [Fri, 3 Jul 2015 21:01:00 +0000 (23:01 +0200)]
Hallvard Furuseth [Wed, 20 May 2015 02:04:38 +0000 (04:04 +0200)]
Set/clear mp_pad, md_pad (MDB_DUPFIXED data size).
mdb_xcursor_init1(): md_pad is only used when MDB_DUPFIXED.
mdb_page_split(): Copy mp_pad too. Used by mdb_page_list().
Hallvard Furuseth [Wed, 8 Apr 2015 19:52:05 +0000 (21:52 +0200)]
Cleanup MDB_env.me_txn0.
More fallout from
4d02c741b120786df1b87ee9ed49c1d3f9bc7522.
Hallvard Furuseth [Wed, 8 Apr 2015 19:51:50 +0000 (21:51 +0200)]
Copy some env flags to txn. Factor out flags.
Taken from mdb_txn_begin(,,MDB_NOMETASYNC, MDB_NOSYNC,,)
without adding those two flags yet, to align with mdb.master:
Part of
54516639acab87aad156230f8a799e9128d266fe (Renumber...)
+
8adee9464f65d1702b81a7c604f1a48baa7a0ad5 (Fix per-txn...).
leo@yuriev.ru [Sat, 17 Jan 2015 05:50:12 +0000 (06:50 +0100)]
ITS#7971 mdb_txn_renew0(): Fix new readers slots.
commit
9a8eb95674c7b500cfe5f44d03493ff76c9fc0c1 (mdb_txn_renew0)
plus
b2ab9910dd5f13ca2d92eeb4c39a90b922df8dfe (reader allocation)
from mdb.master.
David Barbour [Mon, 12 Jan 2015 22:00:30 +0000 (23:00 +0100)]
ITS#7994 Access to current transaction ID.
commit
b660491d3fa359325cb3615a276bba78f32e2075 (mdb_txn_id())
plus
c36c167cc49a59d4f40ae5fc259c013de601164e (fix prev commit)
from mdb.master.
Hallvard Furuseth [Mon, 8 Dec 2014 08:56:36 +0000 (09:56 +0100)]
Try to avoid an invalid datafile after failed init
Hallvard Furuseth [Wed, 3 Dec 2014 11:37:55 +0000 (12:37 +0100)]
For ITS#7789: Ensure mapsize >= pages in use.
Check new mapsizes against mm_last_pg. Move
mdb_env_init_meta0() so it can set mm_last_pg earlier.
Howard Chu [Sun, 25 Oct 2015 08:13:25 +0000 (08:13 +0000)]
ITS#8263, 8264, 7771, 8270
Ignacio Casal Quinteiro [Thu, 15 Oct 2015 20:22:25 +0000 (13:22 -0700)]
ITS#8270 win32: fix conversion error with MSVC
Howard Chu [Sun, 11 Oct 2015 23:08:41 +0000 (00:08 +0100)]
ITS#7771 fix cursor tracking on fake pages
node_del shifts nodes around, cursors pointing at fake pages
need to have their mc_pg[0] corrected.
Hallvard Furuseth [Sun, 11 Oct 2015 20:40:49 +0000 (21:40 +0100)]
ITS#8263 streamline prev patch
Howard Chu [Wed, 7 Oct 2015 05:30:58 +0000 (06:30 +0100)]
ITS#8263 fix cursor tracking in cursor_put
Howard Chu [Tue, 6 Oct 2015 06:57:14 +0000 (07:57 +0100)]
ITS#8264 fix cursor_del cursor tracking
Some destination fixups need to happen immediately after nodes
are moved, before rebalancing
Howard Chu [Sun, 4 Oct 2015 02:02:04 +0000 (03:02 +0100)]
ITS#8258
Howard Chu [Sun, 4 Oct 2015 00:56:25 +0000 (01:56 +0100)]
ITS#8258 fix rebalance/split
The tree height can also increase during rebalance, not just shrink.
This can happen if update_key needs to split a parent branch page.
Howard Chu [Wed, 30 Sep 2015 17:11:20 +0000 (18:11 +0100)]
ITS#8259 fix usage ordering
Howard Chu [Tue, 29 Sep 2015 16:31:56 +0000 (17:31 +0100)]
ITS#8221 fix typos
Howard Chu [Sun, 27 Sep 2015 21:37:28 +0000 (22:37 +0100)]
ITS#8221, #8256
Howard Chu [Sat, 26 Sep 2015 15:50:28 +0000 (16:50 +0100)]
ITS#8221 don't merge branch pages needlessly
Luke Yeager [Sat, 19 Sep 2015 01:06:43 +0000 (18:06 -0700)]
ITS#8256 Create install directories if needed
Howard Chu [Sat, 12 Sep 2015 22:08:14 +0000 (23:08 +0100)]
ITS#7377, 8237
Howard Chu [Sun, 6 Sep 2015 18:18:19 +0000 (19:18 +0100)]
ITS#8237 fix ITS#7589 regression
Hallvard Furuseth [Sun, 23 Aug 2015 09:12:45 +0000 (11:12 +0200)]
ITS#7377 mdb_env_init_meta(): Catch calloc error
Howard Chu [Sat, 22 Aug 2015 13:00:12 +0000 (14:00 +0100)]
Doc tweak - MDB_RESERVE / DUPSORT incompat
For those people who insist on ignoring the obvious.
Howard Chu [Fri, 21 Aug 2015 20:42:25 +0000 (21:42 +0100)]
Return to release engineering
Howard Chu [Fri, 21 Aug 2015 20:40:33 +0000 (21:40 +0100)]
Another MDB_APPEND doc tweak
Missed this in
7ce29b9edbdaf34b7aeb545324008ed4dff62952
Howard Chu [Fri, 14 Aug 2015 00:00:38 +0000 (01:00 +0100)]
Release 0.9.16
Howard Chu [Wed, 29 Jul 2015 19:01:34 +0000 (20:01 +0100)]
ITS#8192 fix reference to EINTR on WIN32 from ITS#8106
Howard Chu [Tue, 28 Jul 2015 14:20:43 +0000 (15:20 +0100)]
Updated for ITS#8181, #8190, #8200
Hallvard Furuseth [Sun, 19 Jul 2015 19:18:31 +0000 (21:18 +0200)]
ITS#8200 Fix mdb_midl_shrink() usage, return void
Hallvard Furuseth [Sat, 11 Jul 2015 19:01:40 +0000 (21:01 +0200)]
ITS#8181 Verify that records are/aren't DBs.
Except we don't catch the user passing F_SUBDATA to
mdb_cursor_<put/del>, like an internal LMDB call.
Howard Chu [Tue, 7 Jul 2015 12:41:32 +0000 (13:41 +0100)]
ITS#8190 fix cursor EOF bug
Howard Chu [Thu, 2 Jul 2015 17:04:25 +0000 (18:04 +0100)]
Return to Release Engineering
Howard Chu [Fri, 19 Jun 2015 13:10:32 +0000 (14:10 +0100)]
Release 0.9.15
Hallvard Furuseth [Tue, 2 Jun 2015 19:07:33 +0000 (21:07 +0200)]
Update for mdb_env_open
Hallvard Furuseth [Tue, 2 Jun 2015 18:49:33 +0000 (20:49 +0200)]
Clarify mdb_env_open() doc of 'mode' param
Hallvard Furuseth [Fri, 29 May 2015 01:08:32 +0000 (03:08 +0200)]
more CHANGES
Hallvard Furuseth [Thu, 28 May 2015 19:13:24 +0000 (21:13 +0200)]
ITS#8156
Hallvard Furuseth [Thu, 28 May 2015 18:51:24 +0000 (20:51 +0200)]
ITS#8156 Fix MDB_MAXKEYSIZE doc
Hallvard Furuseth [Wed, 27 May 2015 22:12:53 +0000 (00:12 +0200)]
ITS#8157
Hallvard Furuseth [Wed, 27 May 2015 20:26:54 +0000 (22:26 +0200)]
ITS#8157 mdb_txn_renew0(): init after error checks
Hallvard Furuseth [Wed, 20 May 2015 01:17:47 +0000 (03:17 +0200)]
mtest*.c: Fix MDB_NOOVERWRITE, plug cursor leak
Hallvard Furuseth [Tue, 19 May 2015 18:33:35 +0000 (20:33 +0200)]
ITS#8117 Fix MDB_INTEGERDUP keysize doc + md_dcmp
Howard Chu [Sun, 3 May 2015 06:52:47 +0000 (07:52 +0100)]
ITS#8117 better fix
Don't change mc_dbx because we would need to undo the change if
the txn aborts. Make the fix (for get) match existing code for put.
Howard Chu [Sun, 3 May 2015 06:43:11 +0000 (07:43 +0100)]
Revert "ITS#8117 cleanup prev commit"
This reverts commit
47c4e747a0ce58f9ecfb5b9615f4c2b6d0753024.
Revert "ITS#8117 fix INTEGERDUP compare"
This reverts commit
ba45e0c05aee867ac1d8240eeb013d37487bb146.
Howard Chu [Wed, 29 Apr 2015 16:25:42 +0000 (17:25 +0100)]
ITS#8117
Howard Chu [Wed, 29 Apr 2015 16:28:21 +0000 (17:28 +0100)]
ITS#8117 cleanup prev commit
Howard Chu [Wed, 29 Apr 2015 16:12:40 +0000 (17:12 +0100)]
ITS#8117 fix INTEGERDUP compare
Howard Chu [Thu, 23 Apr 2015 04:52:13 +0000 (05:52 +0100)]
ITS#8109
Howard Chu [Thu, 23 Apr 2015 04:49:56 +0000 (05:49 +0100)]
ITS#8109 fix mdb_cursor_del0 on empty DB
Howard Chu [Thu, 23 Apr 2015 02:27:33 +0000 (03:27 +0100)]
ITS#8106
Howard Chu [Fri, 17 Apr 2015 17:32:54 +0000 (18:32 +0100)]
ITS#8106 retry writes on EINTR
Hallvard Furuseth [Tue, 14 Apr 2015 18:25:51 +0000 (20:25 +0200)]
Cleanup mtest* and sample-*.
Fix mdb_txn_begin(&read-only txn) calls. Test mdb_env_set_maxreaders().
Rename DBI open/close functions. Move mdb_dbi_close() out of txn.
Hallvard Furuseth [Tue, 14 Apr 2015 18:24:30 +0000 (20:24 +0200)]
Reformat mdb_dbi_open() doc for clarity
Hallvard Furuseth [Wed, 8 Apr 2015 19:47:24 +0000 (21:47 +0200)]
mdb_txn_renew(): Clear error from previous txn
Howard Chu [Wed, 18 Mar 2015 19:26:21 +0000 (19:26 +0000)]
ITS#8062 fix uninit'd cursor index
Hallvard Furuseth [Tue, 27 Jan 2015 05:10:57 +0000 (06:10 +0100)]
Fix EACCES description
Howard Chu [Wed, 15 Apr 2015 23:19:40 +0000 (00:19 +0100)]
ITS#8062 also handle subcursors
Howard Chu [Wed, 15 Apr 2015 22:48:09 +0000 (23:48 +0100)]
ITS#8062
Howard Chu [Wed, 15 Apr 2015 22:20:55 +0000 (23:20 +0100)]
ITS#8062 fix rebalance
(Probably fixes the ITS, definitely fixes a bug) when collapsing
the root page, fixups of other cursors was incomplete.
Quanah Gibson-Mount [Fri, 27 Feb 2015 23:15:23 +0000 (17:15 -0600)]
ITS#8066
Howard Chu [Thu, 26 Feb 2015 21:36:04 +0000 (21:36 +0000)]
ITS#8066 fix mdb_load with large values
Quanah Gibson-Mount [Thu, 12 Feb 2015 16:46:33 +0000 (10:46 -0600)]
Happy New Year
Quanah Gibson-Mount [Thu, 12 Feb 2015 17:17:59 +0000 (11:17 -0600)]
Happy New Year
Hallvard Furuseth [Thu, 15 Jan 2015 06:19:30 +0000 (07:19 +0100)]
Restrictive mdb_copy file mode.
Copied from
58ddb5527bd4868bb7017cfe2051bc2e24bcf5a8.
leo@yuriev.ru [Fri, 17 Oct 2014 22:35:41 +0000 (22:35 +0000)]
ITS#7970 LMDB: Critical Heisenbug
Inconsistent reading & SIGSEGV due to the race condition.
leo@yuriev.ru [Fri, 17 Oct 2014 22:22:39 +0000 (22:22 +0000)]
ITS#7969 LMDB: volatile.
Globally shared fields of meta-data were not 'volatile'.
Code from
9a80a8a8e8feed56fbccd8851b8a789f7fff9c11,
except the unportable __synchronize().
Howard Chu [Tue, 13 Jan 2015 18:47:18 +0000 (18:47 +0000)]
Fix potential null deref (coverity)
Hallvard Furuseth [Mon, 12 Jan 2015 11:19:51 +0000 (12:19 +0100)]
ITS#8021 doc: Don't mix MDB_WRITEMAP + non-WRITEMAP
Howard Chu [Mon, 12 Jan 2015 10:36:38 +0000 (10:36 +0000)]
More cleanup for fdatasync hack
Howard Chu [Sun, 11 Jan 2015 11:41:08 +0000 (11:41 +0000)]
Tweak conditionals for fdatasync hack
Howard Chu [Fri, 9 Jan 2015 11:25:07 +0000 (11:25 +0000)]
ITS#8021 env_sync is invalid in RDONLY env
Howard Chu [Thu, 8 Jan 2015 13:03:55 +0000 (13:03 +0000)]
fdatasync hack, again
Check for ext3/ext4 fs, then check kernel version.
Howard Chu [Thu, 8 Jan 2015 12:56:42 +0000 (12:56 +0000)]
Revert "Fix prev commit for env_sync0"
This reverts commit
e95c9231fc8de567b724477373259e07c62ce210.
Revert "Hack for potential ext3/ext4 corruption issue"
This reverts commit
91155b9d676f8abe3fe5e8a96b22b4dd51f963dd.
Howard Chu [Mon, 22 Dec 2014 18:07:08 +0000 (18:07 +0000)]
Tweak fdatasync hack description
Howard Chu [Sun, 21 Dec 2014 00:13:50 +0000 (00:13 +0000)]
Fix prev commit for env_sync0
Howard Chu [Thu, 18 Dec 2014 04:46:43 +0000 (04:46 +0000)]
Update for fsync hack
Howard Chu [Thu, 18 Dec 2014 04:38:53 +0000 (04:38 +0000)]
Hack for potential ext3/ext4 corruption issue
Use regular fsync() if we think this commit grew the DB file.
Howard Chu [Wed, 17 Dec 2014 15:29:48 +0000 (15:29 +0000)]
Update for 0.9.15
Howard Chu [Mon, 15 Dec 2014 20:40:59 +0000 (20:40 +0000)]
Fix MDB_APPEND doc
We actually compare the new key against the last key, to prevent
corruption.
Hallvard Furuseth [Sat, 13 Dec 2014 19:35:08 +0000 (20:35 +0100)]
make clean: remove *.lo
Howard Chu [Mon, 8 Dec 2014 03:21:09 +0000 (03:21 +0000)]
Clarify mdb_dbi_open doc
The concurrency restriction is on threads within a single process.
Multiple processes can use mdb_dbi_open without affecting each other.
Leo Yuriev [Fri, 5 Dec 2014 19:30:31 +0000 (19:30 +0000)]
ITS#7987 fix excessive space for single write txn
Hallvard Furuseth [Wed, 3 Dec 2014 11:27:53 +0000 (12:27 +0100)]
Fix WIN32 -> _WIN32
Hallvard Furuseth [Mon, 1 Dec 2014 07:59:29 +0000 (08:59 +0100)]
mdb_strerror: Silence warning @ Windows
Hallvard Furuseth [Mon, 1 Dec 2014 07:59:29 +0000 (08:59 +0100)]
Fix comments
Hallvard Furuseth [Mon, 1 Dec 2014 07:59:29 +0000 (08:59 +0100)]
Simplify recent changes a bit.
Hallvard Furuseth [Sat, 22 Nov 2014 21:56:31 +0000 (22:56 +0100)]
ITS#7961,#7987 Re-fix txn init.
More fallout from
4d02c741b120786df1b87ee9ed49c1d3f9bc7522:
Don't modify another thread's write txn. Reinit me_txn0 fully.
Howard Chu [Wed, 8 Oct 2014 18:25:27 +0000 (19:25 +0100)]
ITS#7959 fix prev commit
fstat returns -1, not an errno. Move code into its own function
for reuse.
Howard Chu [Sat, 4 Oct 2014 20:48:49 +0000 (21:48 +0100)]
ITS#7961 fix txn init
More fallout from
4d02c741b120786df1b87ee9ed49c1d3f9bc7522
Jean-Christophe DUBOIS [Fri, 3 Oct 2014 18:24:25 +0000 (20:24 +0200)]
ITS#7959 Check fstat return value
Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>