]> git.ipfire.org Git - thirdparty/openldap.git/log
thirdparty/openldap.git
2 years agoITS#9919 - Mark infrequently used functions as cold rather than manually putting...
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

2 years agoITS#9030 - Use sys/cachectl.h rather than asm/cachectl.h on mips
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.

2 years agoITS#9910 fix typo
Howard Chu [Wed, 21 Sep 2022 19:18:34 +0000 (20:18 +0100)] 
ITS#9910 fix typo

in ad3f8367b0ef913dbff074ddd0fdcbcaa86fdbb0

2 years agoITS#9524 fix loose page tracking
Howard Chu [Wed, 21 Sep 2022 16:07:36 +0000 (17:07 +0100)] 
ITS#9524 fix loose page tracking

Fixes commit 0e17ba43a818f6bdab7759586e247bae12692c25, loose pages
that have been dropped from dirty list should no longer be counted.

2 years agoITS#9910 fix undefined MDB_FDATASYNC on MacOSX
NikoPLP [Thu, 1 Sep 2022 14:58:19 +0000 (14:58 +0000)] 
ITS#9910 fix undefined MDB_FDATASYNC on MacOSX

Broken by d85fe32 ITS#9372

3 years agoITS#9861 fix readonly regression from #9017
Joakim Hassila [Thu, 9 Jun 2022 19:48:38 +0000 (21:48 +0200)] 
ITS#9861 fix readonly regression from #9017

3 years agoITS#9385 fix using MDB_NOSUBDIR with nonexistent file
Kris Zyp [Mon, 2 Nov 2020 20:33:09 +0000 (20:33 +0000)] 
ITS#9385 fix using MDB_NOSUBDIR with nonexistent file

4 years agoITS#9618 fix Windows WRITEMAP flush
Kris Zyp [Wed, 28 Jul 2021 21:03:13 +0000 (15:03 -0600)] 
ITS#9618 fix Windows WRITEMAP flush

Revert back to using standard FlushViewOfFile/FlushFileBuffers
to sync data with WRITEMAP mode on Windows

4 years agoITS#9574 add mdb_drop to .gitignore
Howard Chu [Mon, 7 Jun 2021 14:54:32 +0000 (15:54 +0100)] 
ITS#9574 add mdb_drop to .gitignore

4 years agoITS#9496 fix mdb_env_open bug from #8704
Howard Chu [Fri, 9 Apr 2021 13:06:33 +0000 (14:06 +0100)] 
ITS#9496 fix mdb_env_open bug from #8704

Broken in 3585a1eb977326c7e178c53f4eef1fdc81b46e63

4 years agoITS#9500 fix regression from ITS#8662
Howard Chu [Sun, 14 Mar 2021 14:29:44 +0000 (14:29 +0000)] 
ITS#9500 fix regression from ITS#8662

4 years agoITS#9376 simplify
Howard Chu [Sun, 14 Mar 2021 14:25:55 +0000 (14:25 +0000)] 
ITS#9376 simplify

4 years agoITS#9469 - Typo fixes
Quanah Gibson-Mount [Thu, 18 Feb 2021 16:25:45 +0000 (16:25 +0000)] 
ITS#9469 - Typo fixes

4 years agoITS#9461 fix typo
Howard Chu [Thu, 11 Feb 2021 11:34:57 +0000 (11:34 +0000)] 
ITS#9461 fix typo

4 years agoITS#9461 refix ITS#9376
Howard Chu [Tue, 9 Feb 2021 23:38:06 +0000 (23:38 +0000)] 
ITS#9461 refix ITS#9376

Was setting C_DEL flag gratuitously

4 years agoHappy New Year!
Quanah Gibson-Mount [Tue, 12 Jan 2021 19:20:36 +0000 (19:20 +0000)] 
Happy New Year!

4 years agoITS#9372 Default to using POSIX semaphores on MacOS
Kris Zyp [Tue, 20 Oct 2020 14:52:08 +0000 (08:52 -0600)] 
ITS#9372 Default to using POSIX semaphores on MacOS

Unless robust is specified (then use SysV)

4 years agoITS#9371 Fix unknown size of void compilation errors
Kris Zyp [Tue, 20 Oct 2020 14:04:56 +0000 (08:04 -0600)] 
ITS#9371 Fix unknown size of void compilation errors

4 years agoITS#9376 Fixes for repeated deletes with xcursor
Howard Chu [Wed, 21 Oct 2020 20:24:53 +0000 (21:24 +0100)] 
ITS#9376 Fixes for repeated deletes with xcursor

On DUPSORT DBs, must initialize xcursor regardless of whether
caller requested its data. Also in cursor_prev must check whether
cursor index is still within range before using it.

4 years agoSupport db_pagesize in mdb_load
Howard Chu [Fri, 23 Oct 2020 16:47:15 +0000 (17:47 +0100)] 
Support db_pagesize in mdb_load

Since setting was added in de08119a296a4e8569fa04d7bfcbc7b3c2b41f2f

4 years agoITS#9364 fix doxygen comment
Howard Chu [Mon, 12 Oct 2020 21:55:51 +0000 (22:55 +0100)] 
ITS#9364 fix doxygen comment

4 years agoITS#9364 Add docs for crypto modules
Howard Chu [Mon, 12 Oct 2020 21:28:27 +0000 (22:28 +0100)] 
ITS#9364 Add docs for crypto modules

4 years agoITS#9364 Add crypto support to all tools
Howard Chu [Mon, 12 Oct 2020 20:57:05 +0000 (21:57 +0100)] 
ITS#9364 Add crypto support to all tools

Using dynamically loaded crypto modules

4 years agoITS#9364 use crypto table properly
Howard Chu [Mon, 12 Oct 2020 02:09:48 +0000 (03:09 +0100)] 
ITS#9364 use crypto table properly

4 years agoITS#9364 tweak crypto sample again
Howard Chu [Sun, 11 Oct 2020 17:19:10 +0000 (18:19 +0100)] 
ITS#9364 tweak crypto sample again

4 years agoITS#9364 tweak sample
Howard Chu [Sun, 11 Oct 2020 17:17:07 +0000 (18:17 +0100)] 
ITS#9364 tweak sample

Cheat with OpenSSL 1.1 internal structures to avoid malloc/free per page

4 years agoITS#9364 add sample for authenticated encryption
Howard Chu [Sun, 11 Oct 2020 16:29:54 +0000 (17:29 +0100)] 
ITS#9364 add sample for authenticated encryption

4 years agoITS#9364 add error code texts
Howard Chu [Sun, 11 Oct 2020 13:07:26 +0000 (14:07 +0100)] 
ITS#9364 add error code texts

4 years agoITS#9364 rework crypto API
Howard Chu [Sun, 11 Oct 2020 12:56:52 +0000 (13:56 +0100)] 
ITS#9364 rework crypto API

And add support for per-page checksums. Reserve space for checksum
at tail of page. Pass pgno+txnid as IV input for encryption.

4 years agoITS#9017 fixes for encryption
Howard Chu [Sat, 10 Oct 2020 22:32:56 +0000 (23:32 +0100)] 
ITS#9017 fixes for encryption

4 years agoFix rawpart flag collision
Howard Chu [Sun, 11 Oct 2020 00:32:30 +0000 (01:32 +0100)] 
Fix rawpart flag collision

4 years agoFix fallthru warning
Howard Chu [Sat, 10 Oct 2020 15:29:01 +0000 (16:29 +0100)] 
Fix fallthru warning

4 years agoAdd mdb_env_set_pagesize()
Howard Chu [Mon, 6 Aug 2018 12:09:37 +0000 (13:09 +0100)] 
Add mdb_env_set_pagesize()

4 years agoMore RAWPART support
Howard Chu [Mon, 11 Jun 2018 09:12:03 +0000 (10:12 +0100)] 
More RAWPART support

Use mmap to read and initialize the meta pages, raw device
may not support read/write syscalls.

4 years agoPreliminary raw partition support
Howard Chu [Sun, 21 Feb 2016 18:29:40 +0000 (18:29 +0000)] 
Preliminary raw partition support

Autodetects that a block device is being used.

4 years agoITS#9278 fix robust mutex cleanup for FreeBSD
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

4 years agoITS#9017 cleanup Windows off_t
Howard Chu [Fri, 24 Apr 2020 23:46:58 +0000 (00:46 +0100)] 
ITS#9017 cleanup Windows off_t

4 years agoITS#9017 doxygen comment for MDB_FIXEDSIZE
Howard Chu [Fri, 24 Apr 2020 14:07:33 +0000 (15:07 +0100)] 
ITS#9017 doxygen comment for MDB_FIXEDSIZE

4 years agoITS#9017 LMDB: fix off_t usage on Windows
Howard Chu [Fri, 24 Apr 2020 14:03:33 +0000 (15:03 +0100)] 
ITS#9017 LMDB: fix off_t usage on Windows

4 years agoITS#9017 LMDB: allow using fixed file size 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

4 years agoITS#9017 LMDB: improve Windows sync commit perf
Kris Zyp [Wed, 19 Feb 2020 05:49:03 +0000 (22:49 -0700)] 
ITS#9017 LMDB: improve Windows sync commit perf

4 years agoITS#9155 lmdb: free mt_spill_pgs in non-nested txn on end
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

4 years agoHappy New Year!
Quanah Gibson-Mount [Thu, 9 Jan 2020 16:32:20 +0000 (16:32 +0000)] 
Happy New Year!

4 years agoSilence spurious fallthru warning
Howard Chu [Fri, 15 Nov 2019 16:07:51 +0000 (16:07 +0000)] 
Silence spurious fallthru warning

4 years agoITS#9118 add MAP_NOSYNC for FreeBSD
Howard Chu [Fri, 15 Nov 2019 16:06:34 +0000 (16:06 +0000)] 
ITS#9118 add MAP_NOSYNC for FreeBSD

4 years agoITS#8704 add missing opt flags in prev commit
Howard Chu [Sun, 10 Nov 2019 05:00:47 +0000 (05:00 +0000)] 
ITS#8704 add missing opt flags in prev commit

4 years agoITS#9068 fix backslash escaping
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.

4 years agoITS#9007 don't free loose writemap pages
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

4 years agoITS#8978 Fix mdb_env_open2() failing when getting handle for NTDLL.dll
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.

4 years agoITS#8969 tweak mdb_page_split
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

4 years agoIDLs for VL32 must be same size as for 64bit
Howard Chu [Thu, 17 Jan 2019 18:46:10 +0000 (18:46 +0000)] 
IDLs for VL32 must be same size as for 64bit

4 years agoHappy New Year
Howard Chu [Mon, 14 Jan 2019 19:06:20 +0000 (19:06 +0000)] 
Happy New Year

4 years agoHappy New Year!
Quanah Gibson-Mount [Mon, 14 Jan 2019 18:39:38 +0000 (18:39 +0000)] 
Happy New Year!

4 years agoITS#8857 document mdb_cursor_del does not invalidate the cursor
moneromooo-monero [Tue, 15 May 2018 09:53:13 +0000 (10:53 +0100)] 
ITS#8857 document mdb_cursor_del does not invalidate the cursor

4 years agoITS#8908 DOC: GET_MULTIPLE etc don't return the key
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

4 years agoITS#8891 fix M$ WINAPI typedefs
Howard Chu [Mon, 6 Aug 2018 12:10:59 +0000 (13:10 +0100)] 
ITS#8891 fix M$ WINAPI typedefs

4 years agoITS#8756 remove loose pg from dirty list in freelist_save
Howard Chu [Fri, 22 Jun 2018 15:30:13 +0000 (16:30 +0100)] 
ITS#8756 remove loose pg from dirty list in freelist_save

4 years agoITS#8844 use getpid() in mdb_env_close0()
Howard Chu [Wed, 2 May 2018 16:05:29 +0000 (17:05 +0100)] 
ITS#8844 use getpid() in mdb_env_close0()

4 years agoITS#8831 move flag init into readhdr
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

4 years agoHappy New Year
Quanah Gibson-Mount [Thu, 22 Mar 2018 15:20:57 +0000 (15:20 +0000)] 
Happy New Year

4 years agoITS#8819 can't use fakepage mp_ptrs directly
Howard Chu [Tue, 20 Mar 2018 18:34:56 +0000 (18:34 +0000)] 
ITS#8819 can't use fakepage mp_ptrs directly

4 years agoITS#8324 More for Win32 NTDLL junk
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

4 years agoAdd mdb_drop tool
Howard Chu [Sun, 19 Nov 2017 19:44:53 +0000 (19:44 +0000)] 
Add mdb_drop tool

4 years agoITS#8760 fix regression in 0.9.19
Howard Chu [Thu, 26 Oct 2017 18:04:37 +0000 (19:04 +0100)] 
ITS#8760 fix regression in 0.9.19

4 years agoAdd -a append option to mdb_load
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

4 years agoITS#8612 Fix Solaris builds with liblmdb
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

4 years agoTweak ITS#8722 fix: Use XCURSOR_REFRESH()
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.

4 years agoXCURSOR_REFRESH() fixups/cleanup
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).

4 years agoITS#8728 fix MDB_VL32 freeing overflow page
Howard Chu [Sat, 9 Sep 2017 14:08:03 +0000 (15:08 +0100)] 
ITS#8728 fix MDB_VL32 freeing overflow page

4 years agoITS#8722 fix FIRST_DUP/LAST_DUP cursor bounds check
Howard Chu [Wed, 6 Sep 2017 20:15:48 +0000 (21:15 +0100)] 
ITS#8722 fix FIRST_DUP/LAST_DUP cursor bounds check

4 years agoDoc tweaks
Howard Chu [Fri, 1 Sep 2017 12:16:37 +0000 (13:16 +0100)] 
Doc tweaks

Note about DB names being C strings

4 years agoAdd mdb_cursor_is_db()
Howard Chu [Thu, 31 Aug 2017 14:44:31 +0000 (15:44 +0100)] 
Add mdb_cursor_is_db()

Return 1 if the cursor is pointing to a named DB record

4 years agomdb_dbi_open tweak
Howard Chu [Thu, 31 Aug 2017 14:11:54 +0000 (15:11 +0100)] 
mdb_dbi_open tweak

Always save the terminating NUL of the incoming DB name
Stop using the old mdb_open/mdb_close function names
 .. should consider renaming mdb_stat/mdb_drop to mdb_dbi_... too.

4 years agoITS#8704 Fix PREVMETA, rename to PREVSNAPSHOT
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.

4 years agoUnref ovpages when deleting them
Hallvard Furuseth [Sun, 6 Aug 2017 14:18:06 +0000 (16:18 +0200)] 
Unref ovpages when deleting them

4 years agoDrop always-false MDB_WRITEMAP test when IS_DIRTY_NW()
Hallvard Furuseth [Sun, 6 Aug 2017 14:15:51 +0000 (16:15 +0200)] 
Drop always-false MDB_WRITEMAP test when IS_DIRTY_NW()

4 years agoITS#8704 Add MDB_PREVMETA support to tools
Howard Chu [Mon, 31 Jul 2017 18:15:21 +0000 (19:15 +0100)] 
ITS#8704 Add MDB_PREVMETA support to tools

4 years agoITS#8704 Add PREVMETA to envflags()
Howard Chu [Mon, 31 Jul 2017 18:07:01 +0000 (19:07 +0100)] 
ITS#8704 Add PREVMETA to envflags()

4 years agoITS#8704 add MDB_PREVMETA flag to mdb_env_open
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

4 years agoExpose MDB_ENCRYPT flag
Hallvard Furuseth [Sat, 29 Jul 2017 14:31:06 +0000 (16:31 +0200)] 
Expose MDB_ENCRYPT flag

4 years agoRename mdb_env_getflags->envflags, clarify options
Hallvard Furuseth [Sat, 29 Jul 2017 12:54:55 +0000 (14:54 +0200)] 
Rename mdb_env_getflags->envflags, clarify options

The old name resembled existing function mdb_env_get_flags().

4 years agomdb_page_get() can ignore the toplevel spill list
Hallvard Furuseth [Sat, 29 Jul 2017 05:59:39 +0000 (07:59 +0200)] 
mdb_page_get() can ignore the toplevel spill list

...when we search dirty list before instead of after spill list.

4 years agoDrop mdb_page_get() arg 'level', it's always NULL
Hallvard Furuseth [Sat, 29 Jul 2017 05:59:01 +0000 (07:59 +0200)] 
Drop mdb_page_get() arg 'level', it's always NULL

4 years agoDoc fixes
Hallvard Furuseth [Sat, 29 Jul 2017 05:56:46 +0000 (07:56 +0200)] 
Doc fixes

4 years agoLess hungry mdb_pages_xkeep()
Hallvard Furuseth [Thu, 27 Jul 2017 06:22:34 +0000 (08:22 +0200)] 
Less hungry mdb_pages_xkeep()

Skip pages that are dirty only in an ancestor txn

4 years agoKeep MC_OVPG() == NULL when not MDB_REMAPPING()
Hallvard Furuseth [Thu, 27 Jul 2017 06:19:03 +0000 (08:19 +0200)] 
Keep MC_OVPG() == NULL when not MDB_REMAPPING()

Needed since 418ea8b94e14567ba2be9f9772f38f563a0d7e9c introduced
option MDB_REMAP_CHUNKS.

4 years agoITS#8699 more for cursor_del ITS#8622
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

4 years agoFix 418ea8b94e SEGV on spilled ovpg
Howard Chu [Wed, 26 Jul 2017 19:52:31 +0000 (20:52 +0100)] 
Fix 418ea8b94e SEGV on spilled ovpg

Don't spill an ovpg that is referenced in a cursor

4 years agoDrop P_DIRTY, and MDB_WRITEMAP dirty/spill lists
Hallvard Furuseth [Tue, 25 Jul 2017 19:27:36 +0000 (21:27 +0200)] 
Drop P_DIRTY, and MDB_WRITEMAP dirty/spill lists

mt_workid = mt_txnid when WRITEMAP, so dirty pages == "spilled"
pages and mdb_page_flush() does nothing.

4 years agomp_txnid = page state, avoids searching dirty_list
Hallvard Furuseth [Tue, 25 Jul 2017 19:27:36 +0000 (21:27 +0200)] 
mp_txnid = page state, avoids searching dirty_list

In nested txns, check mp_txnid to see which txn dirtied the page.
This change will also let us remove the P_DIRTY flag, and keep
some flags in (dirty page).mp_txnid if we should need it.

4 years agoDemo - move P_DIRTY to P_ADM_FLAGS, page_dirty()
Hallvard Furuseth [Tue, 25 Jul 2017 19:27:36 +0000 (21:27 +0200)] 
Demo - move P_DIRTY to P_ADM_FLAGS, page_dirty()

...to have something substantial to test P_ADM_FLAGS with,
at least until we drop the P_DIRTY flag.

4 years agoDivide page flags in P_ADM_FLAGS and the rest
Hallvard Furuseth [Tue, 25 Jul 2017 19:27:36 +0000 (21:27 +0200)] 
Divide page flags in P_ADM_FLAGS and the rest

P_ADM_FLAGS flags are tied to the page, even through page_loose-alloc.
OTOH mdb_page_split() should only duplicate the relevant flags.

This is just the code for the feature, P_ADM_FLAGS is 0 for now.
We'll need it for P_HIDESPILL later.

4 years agoDrop unnecessary searches in the spill lists
Hallvard Furuseth [Tue, 25 Jul 2017 19:27:36 +0000 (21:27 +0200)] 
Drop unnecessary searches in the spill lists

Check with IS_MUTABLE() if an MDB_page is spilled, instead of
searching spill lists.  When unspilling, skip parent spill lists.

4 years agoSkip unnecessary mdb_page_get()s when spilling
Hallvard Furuseth [Tue, 25 Jul 2017 19:27:36 +0000 (21:27 +0200)] 
Skip unnecessary mdb_page_get()s when spilling

Do not bring in pages merely to see if they should be skipped.

4 years agoProtect freelist at end of mdb_freelist_save()
Hallvard Furuseth [Tue, 25 Jul 2017 19:27:36 +0000 (21:27 +0200)] 
Protect freelist at end of mdb_freelist_save()

4 years agoUse mdb_page_loose() more
Hallvard Furuseth [Tue, 25 Jul 2017 19:27:36 +0000 (21:27 +0200)] 
Use mdb_page_loose() more

4 years agoVerify final loose_count in mdb_txn_commit()
Hallvard Furuseth [Tue, 25 Jul 2017 19:27:36 +0000 (21:27 +0200)] 
Verify final loose_count in mdb_txn_commit()

Mismatch may indicate that pages leaked or got used twice
in the same snapshot.

4 years agomdb_page_touch: Always set MDB_TXN_ERROR on error
Hallvard Furuseth [Tue, 25 Jul 2017 19:27:36 +0000 (21:27 +0200)] 
mdb_page_touch: Always set MDB_TXN_ERROR on error

4 years agoFix mdb_enctest()
Hallvard Furuseth [Tue, 25 Jul 2017 19:27:36 +0000 (21:27 +0200)] 
Fix mdb_enctest()

Accept a partial ovpage.  I.e. decryption of the beginning
should not depend on the data at the end.
Make the key and IV less regular. (Divisor 67 has period>64.)

4 years agoMove misplaced OVERFLOW_NOTYET code
Hallvard Furuseth [Tue, 25 Jul 2017 19:07:14 +0000 (21:07 +0200)] 
Move misplaced OVERFLOW_NOTYET code

...so it would set pgno,txnid in the MDB_dovpage, not the actual ovpage