]> git.ipfire.org Git - thirdparty/openldap.git/log
thirdparty/openldap.git
10 years agoITS#8316 more for 60c34d14ec3ceb0762d620eef77db73dd1e911dc
Howard Chu [Sat, 21 Nov 2015 17:58:49 +0000 (17:58 +0000)] 
ITS#8316 more for 60c34d14ec3ceb0762d620eef77db73dd1e911dc

10 years agoITS#8300 more for prev commit
Howard Chu [Fri, 20 Nov 2015 13:34:11 +0000 (13:34 +0000)] 
ITS#8300 more for prev commit

Just tell explicitly which direction we moved/merged from

10 years agoSilence some valgrind uninit warnings
Howard Chu [Fri, 20 Nov 2015 09:47:56 +0000 (09:47 +0000)] 
Silence some valgrind uninit warnings

10 years agoRefix root split check from 5da67968afb599697d7557c13b65fb961ec408dd
Howard Chu [Fri, 20 Nov 2015 09:20:16 +0000 (09:20 +0000)] 
Refix root split check from 5da67968afb599697d7557c13b65fb961ec408dd

10 years agoITS#7992 assume Windows paths are UTF-8
Oskari Timperi [Fri, 5 Dec 2014 10:56:22 +0000 (12:56 +0200)] 
ITS#7992 assume Windows paths are UTF-8

10 years agoITS#8316 cursor fixup in page_merge
Howard Chu [Thu, 19 Nov 2015 20:04:16 +0000 (20:04 +0000)] 
ITS#8316 cursor fixup in page_merge

Deleting the merged page requires bumping down other ki's
of the page's parent.

10 years agoITS#8312, 8313, 8315
Howard Chu [Thu, 19 Nov 2015 17:29:42 +0000 (17:29 +0000)] 
ITS#8312, 8313, 8315

10 years agoITS#8315 fix ovpage_free
Howard Chu [Wed, 18 Nov 2015 23:38:34 +0000 (23:38 +0000)] 
ITS#8315 fix ovpage_free

Keep dirty_room sync'd with dirty_list

10 years agoITS#8313 more for ITS#8062
Howard Chu [Wed, 18 Nov 2015 21:33:51 +0000 (21:33 +0000)] 
ITS#8313 more for ITS#8062

dummy flags must be init'd due to 3d46d550

10 years agoITS#8312 Fix loose pages in commit(nested txn)
Hallvard Furuseth [Wed, 18 Nov 2015 15:30:24 +0000 (16:30 +0100)] 
ITS#8312 Fix loose pages in commit(nested txn)

10 years agoITS#8315 fix ovpage_free
Howard Chu [Wed, 18 Nov 2015 23:38:34 +0000 (23:38 +0000)] 
ITS#8315 fix ovpage_free

Keep dirty_room sync'd with dirty_list

10 years agoITS#8313 more for ITS#8062
Howard Chu [Wed, 18 Nov 2015 21:33:51 +0000 (21:33 +0000)] 
ITS#8313 more for ITS#8062

dummy flags must be init'd due to 3d46d550

10 years agoITS#8312 Fix loose pages in commit(nested txn)
Hallvard Furuseth [Wed, 18 Nov 2015 15:30:24 +0000 (16:30 +0100)] 
ITS#8312 Fix loose pages in commit(nested txn)

10 years agoMerge remote-tracking branch 'origin/mdb.RE/0.9'
Howard Chu [Wed, 18 Nov 2015 10:28:46 +0000 (10:28 +0000)] 
Merge remote-tracking branch 'origin/mdb.RE/0.9'

10 years agoITS#8311
Howard Chu [Wed, 18 Nov 2015 10:27:50 +0000 (10:27 +0000)] 
ITS#8311

10 years agoITS#8311 add comment
Howard Chu [Wed, 18 Nov 2015 10:24:41 +0000 (10:24 +0000)] 
ITS#8311 add comment

10 years agoITS#8311 add comment
Howard Chu [Wed, 18 Nov 2015 10:24:41 +0000 (10:24 +0000)] 
ITS#8311 add comment

10 years agoITS#8311 fix page_split from update_key
Howard Chu [Wed, 18 Nov 2015 00:33:25 +0000 (00:33 +0000)] 
ITS#8311 fix page_split from update_key

Check for top of stack. Usually the cursor only has height 1 when
calling page_split, but not always.

10 years agoITS#8311 fix page_split from update_key
Howard Chu [Wed, 18 Nov 2015 00:33:25 +0000 (00:33 +0000)] 
ITS#8311 fix page_split from update_key

Check for top of stack. Usually the cursor only has height 1 when
calling page_split, but not always.

10 years agoITS#7209
Hallvard Furuseth [Tue, 17 Nov 2015 17:49:31 +0000 (18:49 +0100)] 
ITS#7209

10 years agoITS#7209 Default MDB_DSYNC = O_SYNC if no O_DSYNC
Hallvard Furuseth [Tue, 17 Nov 2015 17:22:25 +0000 (18:22 +0100)] 
ITS#7209 Default MDB_DSYNC = O_SYNC if no O_DSYNC

10 years agoITS#7209 Default MDB_DSYNC = O_SYNC if no O_DSYNC
Hallvard Furuseth [Tue, 17 Nov 2015 17:22:25 +0000 (18:22 +0100)] 
ITS#7209 Default MDB_DSYNC = O_SYNC if no O_DSYNC

10 years agoITS#8295 more for prev commit
Howard Chu [Mon, 16 Nov 2015 13:36:20 +0000 (13:36 +0000)] 
ITS#8295 more for prev commit

Silence warnings about struct timeval declaration

10 years agoMerge remote-tracking branch 'origin/mdb.RE/0.9'
Howard Chu [Fri, 13 Nov 2015 09:29:40 +0000 (09:29 +0000)] 
Merge remote-tracking branch 'origin/mdb.RE/0.9'

10 years agoITS#8310
Howard Chu [Fri, 13 Nov 2015 09:28:36 +0000 (09:28 +0000)] 
ITS#8310

10 years agoITS#8310 fix mdb_rebalance cursor fixup
Howard Chu [Fri, 13 Nov 2015 09:25:55 +0000 (09:25 +0000)] 
ITS#8310 fix mdb_rebalance cursor fixup

When collapsing root, must adjust entire cursor stack

10 years agoITS#8310 fix mdb_rebalance cursor fixup
Howard Chu [Fri, 13 Nov 2015 09:25:55 +0000 (09:25 +0000)] 
ITS#8310 fix mdb_rebalance cursor fixup

When collapsing root, must adjust entire cursor stack

10 years agoMerge remote-tracking branch 'origin/mdb.RE/0.9'
Howard Chu [Wed, 11 Nov 2015 11:51:34 +0000 (11:51 +0000)] 
Merge remote-tracking branch 'origin/mdb.RE/0.9'

10 years agoTweak robust mutex detection for glibc
Howard Chu [Wed, 11 Nov 2015 00:02:06 +0000 (00:02 +0000)] 
Tweak robust mutex detection for glibc

10 years agoTweak robust mutex detection for glibc
Howard Chu [Wed, 11 Nov 2015 00:02:06 +0000 (00:02 +0000)] 
Tweak robust mutex detection for glibc

10 years agoITS#8297 sleep before checking contextCSN values
Quanah Gibson-Mount [Tue, 10 Nov 2015 21:58:20 +0000 (15:58 -0600)] 
ITS#8297 sleep before checking contextCSN values

10 years agoMerge remote-tracking branch 'origin/mdb.RE/0.9'
Howard Chu [Mon, 9 Nov 2015 20:15:59 +0000 (20:15 +0000)] 
Merge remote-tracking branch 'origin/mdb.RE/0.9'

10 years agoITS#8304
Howard Chu [Mon, 9 Nov 2015 20:11:10 +0000 (20:11 +0000)] 
ITS#8304

10 years agoITS#8304 fix page_merge
Howard Chu [Mon, 9 Nov 2015 20:09:10 +0000 (20:09 +0000)] 
ITS#8304 fix page_merge

Was using the pre-touch dst page pointer instead of the touched page

10 years agoITS#8304 fix page_merge
Howard Chu [Mon, 9 Nov 2015 20:09:10 +0000 (20:09 +0000)] 
ITS#8304 fix page_merge

Was using the pre-touch dst page pointer instead of the touched page

10 years agoMerge remote-tracking branch 'origin/mdb.RE/0.9'
Howard Chu [Fri, 6 Nov 2015 10:41:57 +0000 (10:41 +0000)] 
Merge remote-tracking branch 'origin/mdb.RE/0.9'

10 years agoITS#8300 more for node_move
Howard Chu [Fri, 6 Nov 2015 10:12:45 +0000 (10:12 +0000)] 
ITS#8300 more for node_move

When moving a node from one page to another, make sure other cursors'
parent index gets adjusted too.

10 years agoITS#8300 more for node_move
Howard Chu [Fri, 6 Nov 2015 10:12:45 +0000 (10:12 +0000)] 
ITS#8300 more for node_move

When moving a node from one page to another, make sure other cursors'
parent index gets adjusted too.

10 years agoMerge remote-tracking branch 'origin/mdb.RE/0.9'
Howard Chu [Thu, 5 Nov 2015 12:17:36 +0000 (12:17 +0000)] 
Merge remote-tracking branch 'origin/mdb.RE/0.9'

10 years agoITS#8301 remove assert in ber_get_next
Howard Chu [Thu, 5 Nov 2015 12:11:21 +0000 (12:11 +0000)] 
ITS#8301 remove assert in ber_get_next

Just return error.

10 years agoITS#8300 simplify
Howard Chu [Wed, 4 Nov 2015 22:45:38 +0000 (22:45 +0000)] 
ITS#8300 simplify

10 years agoITS#8300 simplify
Howard Chu [Wed, 4 Nov 2015 22:45:38 +0000 (22:45 +0000)] 
ITS#8300 simplify

10 years agoMerge remote-tracking branch 'origin/mdb.RE/0.9'
Howard Chu [Wed, 4 Nov 2015 22:34:06 +0000 (22:34 +0000)] 
Merge remote-tracking branch 'origin/mdb.RE/0.9'

10 years agoITS#8300 more for node_move fixups
Howard Chu [Wed, 4 Nov 2015 22:31:01 +0000 (22:31 +0000)] 
ITS#8300 more for node_move fixups

When moving a node from the right neighbor, a different
adjustment is needed.

10 years agoITS#8300 more for node_move fixups
Howard Chu [Wed, 4 Nov 2015 22:31:01 +0000 (22:31 +0000)] 
ITS#8300 more for node_move fixups

When moving a node from the right neighbor, a different
adjustment is needed.

10 years agoMerge remote-tracking branch 'origin/mdb.RE/0.9'
Howard Chu [Wed, 4 Nov 2015 21:04:57 +0000 (21:04 +0000)] 
Merge remote-tracking branch 'origin/mdb.RE/0.9'

10 years agoITS#8300
Howard Chu [Wed, 4 Nov 2015 21:03:22 +0000 (21:03 +0000)] 
ITS#8300

10 years agoITS#8300 fix node_move
Howard Chu [Wed, 4 Nov 2015 21:01:30 +0000 (21:01 +0000)] 
ITS#8300 fix node_move

Don't adjust other cursors when we added a node on the right.

10 years agoITS#8300 fix rebalance after node_move
Howard Chu [Wed, 4 Nov 2015 20:38:30 +0000 (20:38 +0000)] 
ITS#8300 fix rebalance after node_move

ITS#8258, ITS#7829 fixes checked parent index to see if we were moving
from a left neighbor. Should have just checked to see if current index
was 0, meaning we added on the left. (Parent index may not tell us
anything meaningful after a nested rebalance.)

10 years agoITS#8300 fix node_move
Howard Chu [Wed, 4 Nov 2015 21:01:30 +0000 (21:01 +0000)] 
ITS#8300 fix node_move

Don't adjust other cursors when we added a node on the right.

10 years agoITS#8300 fix rebalance after node_move
Howard Chu [Wed, 4 Nov 2015 20:38:30 +0000 (20:38 +0000)] 
ITS#8300 fix rebalance after node_move

ITS#8258, ITS#7829 fixes checked parent index to see if we were moving
from a left neighbor. Should have just checked to see if current index
was 0, meaning we added on the left. (Parent index may not tell us
anything meaningful after a nested rebalance.)

10 years agoMerge remote-tracking branch 'origin/mdb.RE/0.9'
Howard Chu [Wed, 4 Nov 2015 18:18:36 +0000 (18:18 +0000)] 
Merge remote-tracking branch 'origin/mdb.RE/0.9'

10 years agoITS#8238, #8299
Howard Chu [Wed, 4 Nov 2015 18:17:50 +0000 (18:17 +0000)] 
ITS#8238, #8299

10 years agoITS#8238 fix DUPFIXED page_split
Howard Chu [Wed, 4 Nov 2015 18:11:12 +0000 (18:11 +0000)] 
ITS#8238 fix DUPFIXED page_split

Parent mc_ki wasn't adjusted if new_indx was > split point

10 years agoITS#8238 fix DUPFIXED page_split
Howard Chu [Wed, 4 Nov 2015 18:11:12 +0000 (18:11 +0000)] 
ITS#8238 fix DUPFIXED page_split

Parent mc_ki wasn't adjusted if new_indx was > split point

10 years agoMerge remote-tracking branch 'origin/mdb.RE/0.9'
Howard Chu [Wed, 4 Nov 2015 17:08:18 +0000 (17:08 +0000)] 
Merge remote-tracking branch 'origin/mdb.RE/0.9'

10 years agoITS#8299 fix page_merge cursor fixup
Howard Chu [Wed, 4 Nov 2015 17:03:48 +0000 (17:03 +0000)] 
ITS#8299 fix page_merge cursor fixup

The parent's mc_ki has changed. We need to fix that up as well
in other cursors.

10 years agoITS#8299 fix page_merge cursor fixup
Howard Chu [Wed, 4 Nov 2015 17:03:48 +0000 (17:03 +0000)] 
ITS#8299 fix page_merge cursor fixup

The parent's mc_ki has changed. We need to fix that up as well
in other cursors.

10 years agoITS#8054 Cleanup duration patch
Howard Chu [Wed, 28 Oct 2015 14:22:58 +0000 (14:22 +0000)] 
ITS#8054 Cleanup duration patch

Don't need op->o_hr_time, just use o_tincr, that's what it
was intended for anyway. Use "etime=" like other products do.
Simplify ifdefs. Use gettimeofday, it's always available now.

10 years agoITS#8054 operation duration logging
Emily Backes [Fri, 6 Feb 2015 02:52:19 +0000 (18:52 -0800)] 
ITS#8054 operation duration logging

10 years agoMerge remote-tracking branch 'origin/mdb.RE/0.9'
Howard Chu [Sat, 31 Oct 2015 09:28:51 +0000 (09:28 +0000)] 
Merge remote-tracking branch 'origin/mdb.RE/0.9'

10 years agoUse MDB_USE_ROBUST not MDB_NO_ROBUST
Howard Chu [Sat, 31 Oct 2015 02:27:31 +0000 (02:27 +0000)] 
Use MDB_USE_ROBUST not MDB_NO_ROBUST

10 years agoUse MDB_USE_ROBUST not MDB_NO_ROBUST
Howard Chu [Sat, 31 Oct 2015 02:27:31 +0000 (02:27 +0000)] 
Use MDB_USE_ROBUST not MDB_NO_ROBUST

10 years agoAdd MDB_NO_ROBUST to disable Robust Mutexes
Howard Chu [Sat, 31 Oct 2015 02:11:47 +0000 (02:11 +0000)] 
Add MDB_NO_ROBUST to disable Robust Mutexes

10 years agoAdd MDB_NO_ROBUST to disable Robust Mutexes
Howard Chu [Sat, 31 Oct 2015 02:11:47 +0000 (02:11 +0000)] 
Add MDB_NO_ROBUST to disable Robust Mutexes

10 years agoITS#8294 more for prev commit
Howard Chu [Thu, 29 Oct 2015 20:31:36 +0000 (20:31 +0000)] 
ITS#8294 more for prev commit

10 years agoITS#8294 avoid symbol clash with other crypto libs
Howard Chu [Thu, 29 Oct 2015 20:19:00 +0000 (20:19 +0000)] 
ITS#8294 avoid symbol clash with other crypto libs

10 years agoITS#8295 fix Windows microsecond timer
Howard Chu [Wed, 28 Oct 2015 13:49:25 +0000 (13:49 +0000)] 
ITS#8295 fix Windows microsecond timer

Also add ldap_pvt_gettimeofday() to
emulate gettimeofday on Windows

10 years agoFix MDB_NOSYNC,MDB_NOMETASYNC thinko
Hallvard Furuseth [Wed, 28 Oct 2015 08:37:23 +0000 (09:37 +0100)] 
Fix MDB_NOSYNC,MDB_NOMETASYNC thinko

10 years agoITS#8215 fix cd9980c48b0a6b5e4c0fb56dc2a1bc4c845f4040
Howard Chu [Tue, 27 Oct 2015 11:46:08 +0000 (11:46 +0000)] 
ITS#8215 fix cd9980c48b0a6b5e4c0fb56dc2a1bc4c845f4040

Wrong function signature

10 years agoITS#8292 Fix ldif-filter, drop workaround for bug
Hallvard Furuseth [Tue, 27 Oct 2015 11:29:22 +0000 (12:29 +0100)] 
ITS#8292 Fix ldif-filter, drop workaround for bug

10 years agoITS#8289 fix mod Increment with inherited attr type
Howard Chu [Tue, 27 Oct 2015 03:41:17 +0000 (03:41 +0000)] 
ITS#8289 fix mod Increment with inherited attr type

10 years agoITS#8216 fix ldif-filter invocation
Howard Chu [Tue, 27 Oct 2015 02:54:30 +0000 (02:54 +0000)] 
ITS#8216 fix ldif-filter invocation

10 years agoMerge remote-tracking branch 'origin/mdb.RE/0.9'
Howard Chu [Mon, 26 Oct 2015 20:19:04 +0000 (20:19 +0000)] 
Merge remote-tracking branch 'origin/mdb.RE/0.9'

10 years agoMore misc updates
Howard Chu [Mon, 26 Oct 2015 20:18:19 +0000 (20:18 +0000)] 
More misc updates

10 years agoITS#8216 Windows compat
Howard Chu [Mon, 26 Oct 2015 11:51:32 +0000 (11:51 +0000)] 
ITS#8216 Windows compat

10 years agoFix typo in mdb_tassert().
Hallvard Furuseth [Thu, 1 Oct 2015 17:43:58 +0000 (19:43 +0200)] 
Fix typo in mdb_tassert().

No effect on current code.

10 years agoITS#8069 char* strings on Windows are ASCII
Pavel Medvedev [Wed, 19 Aug 2015 16:19:48 +0000 (17:19 +0100)] 
ITS#8069 char* strings on Windows are ASCII

10 years agoITS#8067 add ssize_t typedef for MSVC
Pavel Medvedev [Wed, 19 Aug 2015 15:39:08 +0000 (16:39 +0100)] 
ITS#8067 add ssize_t typedef for MSVC

10 years agoSimpler mdb_env_write_meta()
Hallvard Furuseth [Sun, 26 Jul 2015 05:20:19 +0000 (07:20 +0200)] 
Simpler mdb_env_write_meta()

10 years agoKill magic numbers for NUM_METAS, databases
Hallvard Furuseth [Sun, 26 Jul 2015 05:16:41 +0000 (07:16 +0200)] 
Kill magic numbers for NUM_METAS, databases

10 years agoITS#7377 Catch mdb_put() to blocked/read-only txns
Hallvard Furuseth [Sun, 19 Jul 2015 19:44:02 +0000 (21:44 +0200)] 
ITS#7377 Catch mdb_put() to blocked/read-only txns

...early enough that txn state is left unchanged.

10 years agoITS#7377 Always notice env error on txn startup.
Hallvard Furuseth [Sun, 19 Jul 2015 19:43:10 +0000 (21:43 +0200)] 
ITS#7377 Always notice env error on txn startup.

Move the check to the end of txn startup.  Catches env
breakage which happens while the new txn waits for a lock.

10 years agoCleanup: Drop !mt_dbxs hack, use MDB_TXN_FINISHED
Hallvard Furuseth [Sun, 19 Jul 2015 19:31:54 +0000 (21:31 +0200)] 
Cleanup: Drop !mt_dbxs hack, use MDB_TXN_FINISHED

10 years agoCatch most uses of finished/parent txns.
Hallvard Furuseth [Sun, 19 Jul 2015 19:31:25 +0000 (21:31 +0200)] 
Catch most uses of finished/parent txns.

* Add MDB_TXN_FINISHED, MDB_TXN_HAS_CHILD, MDB_TXN_BLOCKED.
* Clear mt_numdbs in writers, for TXN_DBI_EXIST() to catch.
  We already do in readers.

10 years agoMove code into mdb_txn_end(). Was mdb_txn_reset0.
Hallvard Furuseth [Sun, 19 Jul 2015 19:30:12 +0000 (21:30 +0200)] 
Move code into mdb_txn_end(). Was mdb_txn_reset0.

Side effects:
* Clean txn up a bit even before freeing it.
* Tweak DEBUG output at txn end. Add DEBUG after commit(writer).

10 years agoFactor me_metas[toggle] out to mdb_env_pick_meta()
Hallvard Furuseth [Sat, 11 Jul 2015 19:10:33 +0000 (21:10 +0200)] 
Factor me_metas[toggle] out to mdb_env_pick_meta()

10 years agoSimpler mdb_node_add()
Hallvard Furuseth [Sat, 11 Jul 2015 19:09:36 +0000 (21:09 +0200)] 
Simpler mdb_node_add()

10 years agoMore ESECT declarations
Hallvard Furuseth [Sat, 4 Jul 2015 11:50:21 +0000 (13:50 +0200)] 
More ESECT declarations

10 years agoAdd DB_USRVALID, to avoid 'dbi == FREE_DBI' tests
Hallvard Furuseth [Sat, 4 Jul 2015 11:49:12 +0000 (13:49 +0200)] 
Add DB_USRVALID, to avoid 'dbi == FREE_DBI' tests

10 years agoSimpler flag/DBI checks and MDB_DEBUG
Hallvard Furuseth [Sat, 4 Jul 2015 11:48:07 +0000 (13:48 +0200)] 
Simpler flag/DBI checks and MDB_DEBUG

10 years agoSimpler mdb_drop().
Hallvard Furuseth [Sat, 4 Jul 2015 11:48:06 +0000 (13:48 +0200)] 
Simpler mdb_drop().

MDB_DBI_CHANGED(,MAIN_DBI) is never true.

10 years agoSimpler mdb_node_shrink()
Hallvard Furuseth [Sat, 4 Jul 2015 11:48:05 +0000 (13:48 +0200)] 
Simpler mdb_node_shrink()

10 years agoSimpler mdb_txn_commit().
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.

10 years agomdb_txn_begin() cleanup
Hallvard Furuseth [Sat, 4 Jul 2015 11:48:03 +0000 (13:48 +0200)] 
mdb_txn_begin() cleanup

10 years agomdb_drop0(): Omit scanning DUPSORT sub-DB leaves
Hallvard Furuseth [Sat, 4 Jul 2015 11:48:02 +0000 (13:48 +0200)] 
mdb_drop0(): Omit scanning DUPSORT sub-DB leaves

10 years agoUse mdb_cmp_long() for FREE_DBI
Hallvard Furuseth [Sat, 4 Jul 2015 11:48:01 +0000 (13:48 +0200)] 
Use mdb_cmp_long() for FREE_DBI

10 years agomdb_env_get_flags(): Hide internal flags
Hallvard Furuseth [Sat, 4 Jul 2015 11:42:41 +0000 (13:42 +0200)] 
mdb_env_get_flags(): Hide internal flags

10 years agoSupport robust mutexes/locks. Add mdb_mutex_t etc.
Hallvard Furuseth [Fri, 3 Jul 2015 21:07:30 +0000 (23:07 +0200)] 
Support robust mutexes/locks. Add mdb_mutex_t etc.

10 years agoAdd MDB_USE_POSIX_MUTEX.
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.