Commit graph

1248 commits

Author SHA1 Message Date
Ali Caglayan
40d3741b7d ITS#10420 LMDB: add support for Haiku 2026-01-13 16:43:19 +00:00
Ali Caglayan
c85f161d01 ITS#10419 LMDB: add support for NetBSD 2026-01-13 16:39:46 +00:00
Howard Chu
8e1fda8553 ITS#10421 mdb_load: check for malicious input 2026-01-06 20:52:25 +00:00
Howard Chu
1db2a61ade ITS#9564 lmdb: fix race condition freeing spilled pages at end of transaction 2025-10-15 18:12:26 +01:00
Howard Chu
e13f05211f ITS#10396 lmdb: fix mdb_cursor_del0 with multiple DUPSORT cursors
Use the correct stack index when adjusting other cursors pointing to
the affected page and the DB has a subDB. Broken in ITS#8406.
2025-10-06 16:49:25 +01:00
Howard Chu
14d6629bc8 ITS#10355 lmdb mplay: don't assign to stdin/stdout 2025-06-12 15:16:00 +01:00
Mike Moritz
900756902a ITS#10346 lmdb: fix compacting copy with large values 2025-06-10 20:56:01 +01:00
jinyaoguo
0e098f95ff ITS#10342 lmdb: fix potential memleak in child txn_begin 2025-06-10 20:36:16 +01:00
Howard Chu
f20e41de09 ITS#10024 lmdb: fix MDB_PREVSNAPSHOT txnid initialization 2025-02-21 04:43:03 +00:00
Howard Chu
b21e1b9fea ITS#10296 lmdb: fix typo in prev commit 2025-02-19 09:13:46 +00:00
kero
82c5609ddd ITS#10296 lmdb: fix fdatasync on MacOS
Patch from kero, with corrections by hyc
2025-01-28 17:23:12 +00:00
Gary Wicker
da9aeda08c ITS#10275 mdb_load: add -Q option to use NOSYNC for faster loading 2024-10-26 21:19:20 +01:00
Andras
9c9d34558c ITS#10244 win32: Fix passed ptr type
From dfb3bbed65 ITS#9017
2024-08-10 13:32:21 +01:00
Howard Chu
ddd0a773e2 LMDB: tweak mdb_load.1 manpage
Add missing -a option to Synopsis
2024-06-03 21:14:46 +01:00
Zach Vonler
7c261de59d ITS#10222 LMDB: Updated mdb_dump man page
The -a option to mdb_load makes the previous text obsolete.
2024-06-03 21:12:46 +01:00
Howard Chu
88d0531d3e ITS#10212 LMDB: better fix 2024-05-03 20:44:00 +01:00
Howard Chu
817e283b66 ITS#10212 LMDB: init txnid for read-only DBs 2024-05-02 16:29:03 +01:00
Howard Chu
201ca4675f 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.
2024-04-04 07:15:24 +01:00
Howard Chu
8645e92b93 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
2024-03-26 14:50:17 +00:00
Howard Chu
b8e54b4c31 ITS#9378 Add replay tool
Reads a replay log and executes all the write ops
2024-01-09 17:41:59 +00:00
Howard Chu
754f3cb3a4 ITS#9378 Add explicit replay logging
Logs essential ops so they can be replayed.
Ignores read ops for now.
2024-01-09 17:17:21 +00:00
Clément Renault
30288c7257 ITS#10137 LMDB: Allow users to define MDB_IDL_LOGN 2023-11-27 16:24:43 +00:00
Howard Chu
c07884d114 ITS#10125 mdb_load: fix cursor reinit in Append mode 2023-11-05 17:35:22 +00:00
Howard Chu
3dde6c46e6 ITS#10095 partial revert of ITS#9278 2fd44e3251
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
2023-08-27 15:37:34 +01:00
Howard Chu
c7b3cc4df6 ITS#8447 fix cursor_put(MDB_CURRENT) on DUPSORT DB with different-sized data 2023-03-06 16:47:44 +00:00
Howard Chu
02baafbc54 ITS#9961 LMDB: fix MSVC error 2022-12-15 09:36:58 +00:00
Howard Chu
3947014aed 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.
2022-11-28 23:17:08 +00:00
Howard Chu
6a1954d0ae 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.
2022-11-28 14:29:53 +00:00
Mike Hommey
b53474758f ITS#9919 - Mark infrequently used functions as cold rather than manually putting them in a separate section 2022-09-26 16:36:28 +00:00
Mike Hommey
a46d78e520 ITS#9030 - Use sys/cachectl.h rather than asm/cachectl.h on mips
It also contains the cacheflush function declaration.
2022-09-23 02:36:11 +01:00
moneromooo-monero
1b113f2c94 lmdb: catch non-LMDB negative errors before strerror
That should hopefully shut coverity up
2022-08-14 20:40:50 +01:00
Howard Chu
5a4f5c964a Fix spurious fallthru warning 2022-06-09 22:58:06 +01:00
Joakim Hassila
45745fcd07 ITS#9861 fix readonly regression from #9017 2022-06-09 22:52:01 +01:00
Howard Chu
55fd54dae6 ITS#9723 clear C_EOF on cursor with MDB_FIRST_DUP 2021-10-25 17:17:42 +01:00
Howard Chu
01b1b7dc20 ITS#9574 add mdb_drop to .gitignore 2021-06-07 15:56:32 +01:00
Howard Chu
4b6154340c ITS#9496 fix mdb_env_open bug from #8704
Broken in af2f8cc814
2021-04-09 14:06:33 +01:00
Howard Chu
48a7fed59a ITS#9376 simplify 2021-03-14 14:50:05 +00:00
Howard Chu
2d06d7aa60 ITS#9500 fix regression from ITS#8662 2021-03-14 14:49:07 +00:00
Quanah Gibson-Mount
3464af65c9 ITS#9469 - Typo fixes 2021-02-18 20:33:36 +00:00
Howard Chu
52bc29ee2e ITS#9461 fix typo 2021-02-11 11:35:22 +00:00
Howard Chu
917e4f1d14 ITS#9461 refix ITS#9376
Was setting C_DEL flag gratuitously
2021-02-09 23:38:06 +00:00
Quanah Gibson-Mount
5b75edb633 Happy New Year! 2021-01-12 19:20:01 +00:00
Howard Chu
a99290f253 Fixes for repeated deletes with xcursor
On DUPSORT DBs, must initialize xcursor regardless of whether
caller requested its data.
2020-10-23 17:57:16 +01:00
Howard Chu
2fd44e3251 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
2020-06-16 19:49:14 +01:00
Howard Chu
8d0cbbc936 ITS#9017 cleanup Windows off_t 2020-04-25 00:46:58 +01:00
Howard Chu
1f026685fd ITS#9017 doxygen comment for MDB_FIXEDSIZE 2020-04-24 15:07:33 +01:00
Howard Chu
b77c2ba72a ITS#9017 LMDB: fix off_t usage on Windows 2020-04-24 15:03:33 +01:00
Kris Zyp
147582b5dc ITS#9017 LMDB: allow using fixed file size on Windows 2020-04-24 14:47:32 +01:00
Kris Zyp
da0527ac75 ITS#9017 LMDB: improve Windows sync commit perf 2020-04-24 14:44:33 +01:00
Howard Chu
cb256f409b ITS#9155 lmdb: free mt_spill_pgs in non-nested txn on end 2020-01-23 14:51:37 +00:00