]>
git.ipfire.org Git - thirdparty/openldap.git/log
Howard Chu [Thu, 12 Jun 2025 14:16:00 +0000 (15:16 +0100)]
ITS#10355 lmdb mplay: don't assign to stdin/stdout
Mike Moritz [Wed, 28 May 2025 23:11:38 +0000 (23:11 +0000)]
ITS#10346 lmdb: fix compacting copy with large values
jinyaoguo [Wed, 28 May 2025 01:47:48 +0000 (21:47 -0400)]
ITS#10342 lmdb: fix potential memleak in child txn_begin
Howard Chu [Fri, 21 Feb 2025 04:42:03 +0000 (04:42 +0000)]
ITS#10024 lmdb: fix MDB_PREVSNAPSHOT txnid initialization
Howard Chu [Wed, 19 Feb 2025 09:13:46 +0000 (09:13 +0000)]
ITS#10296 lmdb: fix typo in prev commit
kero [Thu, 9 Jan 2025 14:56:00 +0000 (14:56 +0000)]
ITS#10296 lmdb: fix fdatasync on MacOS
Patch from kero, with corrections by hyc
Gary Wicker [Fri, 25 Oct 2024 01:05:00 +0000 (01:05 +0000)]
ITS#10275 mdb_load: add -Q option to use NOSYNC for faster loading
Andras [Mon, 29 Jul 2024 11:28:16 +0000 (14:28 +0300)]
ITS#10244 win32: Fix passed ptr type
From
dfb3bbed656132456001c5aaca246fd4430e5ef5 ITS#9017
Howard Chu [Mon, 3 Jun 2024 20:14:46 +0000 (21:14 +0100)]
LMDB: tweak mdb_load.1 manpage
Add missing -a option to Synopsis
Zach Vonler [Mon, 3 Jun 2024 19:39:02 +0000 (12:39 -0700)]
ITS#10222 LMDB: Updated mdb_dump man page
The -a option to mdb_load makes the previous text obsolete.
Howard Chu [Fri, 3 May 2024 19:43:39 +0000 (20:43 +0100)]
ITS#10212 LMDB: better fix
Howard Chu [Thu, 2 May 2024 15:29:03 +0000 (16:29 +0100)]
ITS#10212 LMDB: init txnid for read-only DBs
Howard Chu [Thu, 4 Apr 2024 06:15:24 +0000 (07:15 +0100)]
ITS#10198 Win32 mdb_strerror - stop passing "ignored" parameter
The M$ docs say the parameter is ignored, but it actually isn't,
and will cause a SEGV if the pointed memory isn't an init'd va_list.
Howard Chu [Tue, 26 Mar 2024 14:50:17 +0000 (14:50 +0000)]
ITS#9037 mdb_page_search: fix error code when DBI record is missing
Use the more relevant MDB_BAD_DBI instead of MDB_NOTFOUND error code
Howard Chu [Fri, 22 Dec 2023 19:55:22 +0000 (19:55 +0000)]
ITS#9378 Add replay tool
Reads a replay log and executes all the write ops
Howard Chu [Fri, 22 Dec 2023 13:14:32 +0000 (13:14 +0000)]
ITS#9378 Add explicit replay logging
Logs essential ops so they can be replayed.
Ignores read ops for now.
Clément Renault [Mon, 27 Nov 2023 09:35:15 +0000 (10:35 +0100)]
ITS#10137 LMDB: Allow users to define MDB_IDL_LOGN
Howard Chu [Sun, 5 Nov 2023 17:34:03 +0000 (17:34 +0000)]
ITS#10125 mdb_load: fix cursor reinit in Append mode
Howard Chu [Sun, 27 Aug 2023 14:37:34 +0000 (15:37 +0100)]
ITS#10095 partial revert of ITS#9278
2fd44e325195ae81664eb5dc36e7d265927c5ebc
The patch was incorrect and introduced numerous race conditions.
The original problem was a FreeBSD bug, subsequently fixed:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269277
Howard Chu [Mon, 6 Mar 2023 16:47:44 +0000 (16:47 +0000)]
ITS#8447 fix cursor_put(MDB_CURRENT) on DUPSORT DB with different-sized data
Howard Chu [Thu, 15 Dec 2022 09:36:58 +0000 (09:36 +0000)]
ITS#9961 LMDB: fix MSVC error
Howard Chu [Tue, 15 Nov 2022 15:33:48 +0000 (15:33 +0000)]
ITS#9916 liblmdb: use alternate MDB_page2 struct for some accesses
fakepage pointers are only guaranteed to be 2-byte aligned. Use a
2-byte aligned struct definition when referencing 2-byte page members
if a page pointer possibly points to a fakepage.
Howard Chu [Mon, 28 Nov 2022 14:29:53 +0000 (14:29 +0000)]
ITS#9806 LMDB page_split: key threshold depends on page size
32 was chosen for page size of 4KB. Not large nough for 16KB pages.
Mike Hommey [Thu, 3 Feb 2022 23:48:06 +0000 (08:48 +0900)]
ITS#9919 - Mark infrequently used functions as cold rather than manually putting them in a separate section
Mike Hommey [Thu, 6 Jun 2019 00:06:06 +0000 (09:06 +0900)]
ITS#9030 - Use sys/cachectl.h rather than asm/cachectl.h on mips
It also contains the cacheflush function declaration.
moneromooo-monero [Sat, 13 Apr 2019 23:37:03 +0000 (23:37 +0000)]
lmdb: catch non-LMDB negative errors before strerror
That should hopefully shut coverity up
Howard Chu [Thu, 9 Jun 2022 21:58:06 +0000 (22:58 +0100)]
Fix spurious fallthru warning
Joakim Hassila [Thu, 9 Jun 2022 19:48:38 +0000 (21:48 +0200)]
ITS#9861 fix readonly regression from #9017
Howard Chu [Mon, 25 Oct 2021 16:17:42 +0000 (17:17 +0100)]
ITS#9723 clear C_EOF on cursor with MDB_FIRST_DUP
Howard Chu [Mon, 7 Jun 2021 14:54:32 +0000 (15:54 +0100)]
ITS#9574 add mdb_drop to .gitignore
Howard Chu [Fri, 9 Apr 2021 13:06:33 +0000 (14:06 +0100)]
ITS#9496 fix mdb_env_open bug from #8704
Broken in
af2f8cc814fabe2814cacb573be3338292f47c0d
Howard Chu [Sun, 14 Mar 2021 14:25:55 +0000 (14:25 +0000)]
ITS#9376 simplify
Howard Chu [Sun, 14 Mar 2021 14:29:44 +0000 (14:29 +0000)]
ITS#9500 fix regression from ITS#8662
Quanah Gibson-Mount [Thu, 18 Feb 2021 16:25:45 +0000 (16:25 +0000)]
ITS#9469 - Typo fixes
Howard Chu [Thu, 11 Feb 2021 11:34:57 +0000 (11:34 +0000)]
ITS#9461 fix typo
Howard Chu [Tue, 9 Feb 2021 23:38:06 +0000 (23:38 +0000)]
ITS#9461 refix ITS#9376
Was setting C_DEL flag gratuitously
Quanah Gibson-Mount [Tue, 12 Jan 2021 19:20:01 +0000 (19:20 +0000)]
Happy New Year!
Howard Chu [Wed, 21 Oct 2020 20:24:53 +0000 (21:24 +0100)]
Fixes for repeated deletes with xcursor
On DUPSORT DBs, must initialize xcursor regardless of whether
caller requested its data.
Howard Chu [Tue, 16 Jun 2020 18:49:14 +0000 (19:49 +0100)]
ITS#9278 fix robust mutex cleanup for FreeBSD
FreeBSD 11 supports robust process-shared POSIX mutexes,
but requires them to be explicitly destroyed before munmap
Howard Chu [Fri, 24 Apr 2020 23:46:58 +0000 (00:46 +0100)]
ITS#9017 cleanup Windows off_t
Howard Chu [Fri, 24 Apr 2020 14:07:33 +0000 (15:07 +0100)]
ITS#9017 doxygen comment for MDB_FIXEDSIZE
Howard Chu [Fri, 24 Apr 2020 14:03:33 +0000 (15:03 +0100)]
ITS#9017 LMDB: fix off_t usage on Windows
Kris Zyp [Wed, 19 Feb 2020 05:50:41 +0000 (22:50 -0700)]
ITS#9017 LMDB: allow using fixed file size on Windows
Kris Zyp [Wed, 19 Feb 2020 05:49:03 +0000 (22:49 -0700)]
ITS#9017 LMDB: improve Windows sync commit perf
Howard Chu [Thu, 23 Jan 2020 14:50:00 +0000 (14:50 +0000)]
ITS#9155 lmdb: free mt_spill_pgs in non-nested txn on end
Quanah Gibson-Mount [Thu, 9 Jan 2020 16:32:20 +0000 (16:32 +0000)]
Happy New Year!
Howard Chu [Fri, 15 Nov 2019 16:07:51 +0000 (16:07 +0000)]
Silence spurious fallthru warning
Howard Chu [Fri, 15 Nov 2019 16:06:34 +0000 (16:06 +0000)]
ITS#9118 add MAP_NOSYNC for FreeBSD
Howard Chu [Sun, 10 Nov 2019 05:20:37 +0000 (05:20 +0000)]
Revert "ITS#9116 LMDB: fix bogus error check in read-only txns"
This reverts commit
0e895ffe4391fd9a8a484395887a9f7d156b86ae .
Was not an LMDB bug.
Howard Chu [Sun, 10 Nov 2019 05:00:47 +0000 (05:00 +0000)]
ITS#8704 add missing opt flags in prev commit
Howard Chu [Sun, 10 Nov 2019 04:58:35 +0000 (04:58 +0000)]
ITS#9116 LMDB: fix bogus error check in read-only txns
Howard Chu [Mon, 26 Aug 2019 16:51:53 +0000 (17:51 +0100)]
ITS#9068 fix backslash escaping
mdb_load wasn't properly inserting escaped backslashes into the data.
mdb_dump wasn't escaping backslashes when generating printable output.
Kris Zyp [Tue, 16 Apr 2019 02:07:56 +0000 (20:07 -0600)]
ITS#9007 don't free loose writemap pages
Broken in ITS#8756
Ka Ho Ng [Sun, 17 Feb 2019 15:59:56 +0000 (23:59 +0800)]
ITS#8978 Fix mdb_env_open2() failing when getting handle for NTDLL.dll
Always call GetModuleHandleW() with Unicode string, as mdb_fopen() is
calling CreateFileW() already.
Howard Chu [Wed, 30 Jan 2019 23:43:34 +0000 (23:43 +0000)]
ITS#8969 tweak mdb_page_split
Bump up number of keys for which we use fine-grained splitpoint search
Howard Chu [Thu, 17 Jan 2019 19:50:03 +0000 (19:50 +0000)]
Fix merge error
Howard Chu [Wed, 12 Apr 2017 22:55:29 +0000 (23:55 +0100)]
Fix Android recognition
The official macro is __ANDROID__; ANDROID may or may not be defined.
Howard Chu [Wed, 20 Sep 2017 17:38:47 +0000 (18:38 +0100)]
Add -a append option to mdb_load
To allow reloading of custom-sorted DBs from mdb_dump
Howard Chu [Sat, 12 Aug 2017 10:16:45 +0000 (11:16 +0100)]
ITS#8704 Fix PREVMETA, rename to PREVSNAPSHOT
and enforce exclusive access to environment. Also fix txn_begin/pick_meta
to use correct meta page, and reset the flag after successful commit.
Howard Chu [Mon, 31 Jul 2017 18:15:21 +0000 (19:15 +0100)]
ITS#8704 Add MDB_PREVMETA support to tools
Howard Chu [Thu, 17 Jan 2019 18:46:10 +0000 (18:46 +0000)]
IDLs for VL32 must be same size as for 64bit
Howard Chu [Mon, 14 Jan 2019 19:06:20 +0000 (19:06 +0000)]
Happy New Year
Quanah Gibson-Mount [Mon, 14 Jan 2019 18:39:38 +0000 (18:39 +0000)]
Happy New Year!
moneromooo-monero [Tue, 15 May 2018 09:53:13 +0000 (10:53 +0100)]
ITS#8857 document mdb_cursor_del does not invalidate the cursor
Howard Chu [Wed, 29 Aug 2018 00:25:01 +0000 (01:25 +0100)]
ITS#8908 DOC: GET_MULTIPLE etc don't return the key
Unnecessary since these are DUPs, the key will always be the same
Howard Chu [Mon, 6 Aug 2018 12:10:59 +0000 (13:10 +0100)]
ITS#8891 fix M$ WINAPI typedefs
Howard Chu [Fri, 22 Jun 2018 15:30:13 +0000 (16:30 +0100)]
ITS#8756 remove loose pg from dirty list in freelist_save
Howard Chu [Wed, 2 May 2018 16:05:29 +0000 (17:05 +0100)]
ITS#8844 use getpid() in mdb_env_close0()
Howard Chu [Mon, 2 Apr 2018 17:01:19 +0000 (18:01 +0100)]
ITS#8831 move flag init into readhdr
Avoid stomping on flags from 1st readhr invocation
Quanah Gibson-Mount [Thu, 22 Mar 2018 15:20:57 +0000 (15:20 +0000)]
Happy New Year
Howard Chu [Tue, 20 Mar 2018 18:34:56 +0000 (18:34 +0000)]
ITS#8819 can't use fakepage mp_ptrs directly
Howard Chu [Sun, 18 Feb 2018 21:00:54 +0000 (21:00 +0000)]
ITS#8324 More for Win32 NTDLL junk
Use GetProcAddress at runtime, avoid buildtime NTDLL link issues
Howard Chu [Sun, 19 Nov 2017 19:44:53 +0000 (19:44 +0000)]
Add mdb_drop tool
Howard Chu [Thu, 26 Oct 2017 18:04:37 +0000 (19:04 +0100)]
ITS#8760 fix regression in 0.9.19
Quanah Gibson-Mount [Wed, 7 Jun 2017 20:42:51 +0000 (13:42 -0700)]
ITS#8612 Fix Solaris builds with liblmdb
This patch fixes liblmdb builds on Solaris and derivatives by defining
_POSIX_PTHREAD_SEMANTICS
Hallvard Furuseth [Sun, 10 Sep 2017 22:00:14 +0000 (00:00 +0200)]
Tweak ITS#8722 fix: Use XCURSOR_REFRESH()
This checks XCURSOR_INITED() and fixes the mn_flags check.
Hallvard Furuseth [Sun, 10 Sep 2017 21:59:35 +0000 (23:59 +0200)]
XCURSOR_REFRESH() fixups/cleanup
* Check NUMKEYS(), similar to
f34b61f9471d1c03fe0517b9d817c50c920e378a
"ITS#8722 fix FIRST_DUP/LAST_DUP cursor bounds check".
* Move XCURSOR_INITED() into XCURSOR_REFRESH(). This adds a check in
mdb_cursor_put, below /* converted, write the original data first */.
* Factor mc_ki[] out to XCURSOR_REFRESH().
* Replace an mc_pg[] with mp which is equal (mdb_cursor_del0).
Howard Chu [Sat, 9 Sep 2017 14:08:03 +0000 (15:08 +0100)]
ITS#8728 fix MDB_VL32 freeing overflow page
Howard Chu [Wed, 6 Sep 2017 20:15:48 +0000 (21:15 +0100)]
ITS#8722 fix FIRST_DUP/LAST_DUP cursor bounds check
moneromooo-monero [Sun, 30 Jul 2017 23:04:28 +0000 (00:04 +0100)]
ITS#8704 add MDB_PREVMETA flag to mdb_env_open
used to open the previous meta page, in case the latest one
is corrupted
From https://github.com/LMDB/lmdb/pull/12
Howard Chu [Wed, 26 Jul 2017 20:37:40 +0000 (21:37 +0100)]
ITS#8699 more for cursor_del ITS#8622
Set C_DEL flag on reinit'd subcursor
Howard Chu [Thu, 23 Mar 2017 20:37:24 +0000 (20:37 +0000)]
ITS#8622 fix xcursor after cursor_del
Re-fix
6b1df0e4c7fadd21d1233d7157229b2d89ccaa04 from ITS#8406
Hallvard Furuseth [Sun, 12 Mar 2017 19:08:53 +0000 (20:08 +0100)]
ITS#8582 Fill in MDB_LOCK_FORMAT
Attempt to stop liblmdb variants compiled with conflicting options
from using the lockfile at the same time and thus breaking it.
Hallvard Furuseth [Sun, 12 Mar 2017 15:59:23 +0000 (16:59 +0100)]
Clear any struct padding in idbuf
Hallvard Furuseth [Sun, 12 Mar 2017 15:58:51 +0000 (16:58 +0100)]
Simplify mdb_hash_val() -> mdb_hash()
Simpler usage since it's only called once, rename to match new usage,
and drop 3 loop pessimizations which were optimizations 20 years ago.
Hallvard Furuseth [Sun, 12 Mar 2017 15:55:14 +0000 (16:55 +0100)]
Store lock ID instead of pathname in lockfile
This limits the namespace which the user can meddle with for
POSIX semaphores and Windows mutexes. Their names change a
bit, they no longer have fixed lengths.
Hallvard Furuseth [Sat, 4 Mar 2017 12:03:15 +0000 (13:03 +0100)]
ITS#8582 MDB_LOCK_VERSION = 2 due to format change
Howard Chu [Mon, 6 Feb 2017 15:09:26 +0000 (15:09 +0000)]
ITS#8582 keep mutex at end of struct
since it's variable size on Linux/glibc
Howard Chu [Tue, 31 Jan 2017 10:41:52 +0000 (10:41 +0000)]
Workaround VL32 cursor refcounting miscount
Don't try to deref cursor page if txn's pagelist is empty
Howard Chu [Sat, 14 Jan 2017 19:22:34 +0000 (19:22 +0000)]
Further fix
f8ce8a82717ddefdc912fa47c07f1bdee2a3336b
Fully revert the change to GET_MULTIPLE
Howard Chu [Thu, 12 Jan 2017 13:35:31 +0000 (13:35 +0000)]
Howard Chu [Wed, 11 Jan 2017 14:39:08 +0000 (14:39 +0000)]
Happy New Year
Howard Chu [Wed, 11 Jan 2017 11:19:18 +0000 (11:19 +0000)]
More C_EOF tweaks
Howard Chu [Wed, 11 Jan 2017 11:18:57 +0000 (11:18 +0000)]
ITS#8557 fix prev commit
Howard Chu [Wed, 11 Jan 2017 10:33:28 +0000 (10:33 +0000)]
Tweak cursor_next C_EOF check
Allow C_EOF flag to be stale
Howard Chu [Wed, 11 Jan 2017 09:51:43 +0000 (09:51 +0000)]
ITS#8557 fix mdb_cursor_last
Optimize mdb_page_search_root(PS_LAST) when cursor is already near
last position, ignoring C_EOF flag for now.
Howard Chu [Fri, 6 Jan 2017 19:48:58 +0000 (19:48 +0000)]
ITS#8558 fix mdb_load with escaped plaintext
Howard Chu [Wed, 28 Dec 2016 18:30:19 +0000 (18:30 +0000)]
ITS#8554 kFreeBSD is like BSD
Doesn't have POSIX robust mutexes - GNU userland on BSD kernel
Hallvard Furuseth [Wed, 21 Dec 2016 20:40:14 +0000 (21:40 +0100)]
More MDB_node doc
Hallvard Furuseth [Wed, 21 Dec 2016 15:33:47 +0000 (16:33 +0100)]
Doxygen fixes. Use DISTRIBUTE_GROUP_DOC.
- DISTRIBUTE_GROUP_DOC makes doxygen give several fields the
same doc: mn_hi + mn_lo in MDB_node.
- With mdb_mutex_t + mdb_mutexref_t, instead split them up.
- Don't hide a doxygen #name inside double quotes.