]> git.sur5r.net Git - openldap/log
openldap
8 years agoRework Modify statslog too syslog2
Howard Chu [Sun, 1 Nov 2015 15:35:12 +0000 (15:35 +0000)]
Rework Modify statslog too

8 years agoRework Search statslog
Howard Chu [Sun, 1 Nov 2015 09:55:21 +0000 (09:55 +0000)]
Rework Search statslog

8 years agoCheckpoint
Howard Chu [Sun, 1 Nov 2015 08:13:09 +0000 (08:13 +0000)]
Checkpoint

Precompute log header - reduce msg formatting overhead
More direct use of log buffers - minimize copying
Multiple lines per send
  supported by default in syslog-ng
  not default in rsyslog

8 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.

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

8 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'

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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'

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

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

8 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.

8 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

8 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

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

8 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

8 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.

8 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.

8 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

8 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.

8 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).

8 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()

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

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

8 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

8 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

8 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.

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

8 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.

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

8 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

8 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

8 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

8 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.

8 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.

8 years agoWhitespace (align with mdb.master)
Hallvard Furuseth [Fri, 3 Jul 2015 21:02:12 +0000 (23:02 +0200)]
Whitespace (align with mdb.master)

8 years agoITS#7969 Use __sync_synchronize()
leo@yuriev.ru [Fri, 3 Jul 2015 21:01:00 +0000 (23:01 +0200)]
ITS#7969 Use __sync_synchronize()

The rest of 9a80a8a8e8feed56fbccd8851b8a789f7fff9c11
plus commit a937740aa0c47dc7a1a5e9be42dcea2dd3c81683.

8 years agoSet/clear mp_pad, md_pad (MDB_DUPFIXED data size).
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().

8 years agoCleanup MDB_env.me_txn0.
Hallvard Furuseth [Wed, 8 Apr 2015 19:52:05 +0000 (21:52 +0200)]
Cleanup MDB_env.me_txn0.

More fallout from 4d02c741b120786df1b87ee9ed49c1d3f9bc7522.

8 years agoCopy some env flags to txn. Factor out flags.
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...).

8 years agoITS#7971 mdb_txn_renew0(): Fix new readers slots.
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.

8 years agoITS#7994 Access to current transaction ID.
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.

8 years agoTry to avoid an invalid datafile after failed init
Hallvard Furuseth [Mon, 8 Dec 2014 08:56:36 +0000 (09:56 +0100)]
Try to avoid an invalid datafile after failed init

8 years agoFor ITS#7789: Ensure mapsize >= pages in use.
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.

8 years agoITS#8114 LDAP MODIFY handling
HAMANO Tsukasa [Fri, 4 Sep 2015 15:26:52 +0000 (00:26 +0900)]
ITS#8114 LDAP MODIFY handling

8 years agoITS#8114 suppress warn message
HAMANO Tsukasa [Sun, 30 Aug 2015 14:42:17 +0000 (23:42 +0900)]
ITS#8114 suppress warn message

8 years agoITS#8215 Make slapmodify test failures fatal
Ondřej Kuzník [Tue, 11 Aug 2015 12:32:44 +0000 (14:32 +0200)]
ITS#8215 Make slapmodify test failures fatal

8 years agoITS#8215 Add config tool delete support
Ondřej Kuzník [Tue, 11 Aug 2015 12:31:50 +0000 (14:31 +0200)]
ITS#8215 Add config tool delete support

8 years agoITS#8215 Add mdb tool delete support
Ondřej Kuzník [Tue, 11 Aug 2015 12:31:35 +0000 (14:31 +0200)]
ITS#8215 Add mdb tool delete support

8 years agoITS#8215 Add bdb tool delete support
Ondřej Kuzník [Tue, 11 Aug 2015 12:31:22 +0000 (14:31 +0200)]
ITS#8215 Add bdb tool delete support

8 years agoITS#8215 Change BI_tool_entry_delete signature
Ondřej Kuzník [Tue, 11 Aug 2015 12:30:47 +0000 (14:30 +0200)]
ITS#8215 Change BI_tool_entry_delete signature

8 years agoITS#8215 Make editing of invalid entries possible
Ondřej Kuzník [Tue, 11 Aug 2015 12:28:43 +0000 (14:28 +0200)]
ITS#8215 Make editing of invalid entries possible

If the database does not conform to any known schema, make it possible
to edit such a database using slapmodify when schema-checking is
disabled.

8 years agoITS#8215 Do not crash on an empty entry
Ondřej Kuzník [Tue, 11 Aug 2015 12:27:22 +0000 (14:27 +0200)]
ITS#8215 Do not crash on an empty entry

8 years agoITS#8215 Remove a memory leak
Ondřej Kuzník [Tue, 11 Aug 2015 12:26:39 +0000 (14:26 +0200)]
ITS#8215 Remove a memory leak

8 years agoITS#8215 Use the correct transaction
Ondřej Kuzník [Tue, 11 Aug 2015 12:25:11 +0000 (14:25 +0200)]
ITS#8215 Use the correct transaction

8 years agoITS#8215 Add slapmodify manpage
Ondřej Kuzník [Tue, 11 Aug 2015 12:22:48 +0000 (14:22 +0200)]
ITS#8215 Add slapmodify manpage

8 years agoITS#8215 Manpage fixes
Ondřej Kuzník [Tue, 11 Aug 2015 12:22:15 +0000 (14:22 +0200)]
ITS#8215 Manpage fixes

8 years agoITS#8284 olcRelay needs quotes
Howard Chu [Sun, 25 Oct 2015 08:19:03 +0000 (08:19 +0000)]
ITS#8284 olcRelay needs quotes

8 years agoMerge remote-tracking branch 'origin/mdb.RE/0.9'
Howard Chu [Sun, 25 Oct 2015 08:14:55 +0000 (08:14 +0000)]
Merge remote-tracking branch 'origin/mdb.RE/0.9'

8 years agoITS#8263, 8264, 7771, 8270
Howard Chu [Sun, 25 Oct 2015 08:13:25 +0000 (08:13 +0000)]
ITS#8263, 8264, 7771, 8270

8 years agoITS#8270 win32: fix conversion error with MSVC
Ignacio Casal Quinteiro [Thu, 15 Oct 2015 20:22:25 +0000 (13:22 -0700)]
ITS#8270 win32: fix conversion error with MSVC

8 years agoITS#7771 fix cursor tracking on fake pages
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.

8 years agoITS#8263 streamline prev patch
Hallvard Furuseth [Sun, 11 Oct 2015 20:40:49 +0000 (21:40 +0100)]
ITS#8263 streamline prev patch

8 years agoITS#8263 fix cursor tracking in cursor_put
Howard Chu [Wed, 7 Oct 2015 05:30:58 +0000 (06:30 +0100)]
ITS#8263 fix cursor tracking in cursor_put

8 years agoITS#8264 fix cursor_del cursor tracking
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

8 years agoCleanup
Howard Chu [Sat, 24 Oct 2015 05:48:41 +0000 (06:48 +0100)]
Cleanup

Log the same pointer in queue_csn as graduate_

8 years agoITS#8281 more for prev commit
Howard Chu [Sat, 24 Oct 2015 05:34:24 +0000 (06:34 +0100)]
ITS#8281 more for prev commit

8 years agoITS#8281 fix delta-mmr with interrupted refresh
Howard Chu [Fri, 23 Oct 2015 19:17:45 +0000 (20:17 +0100)]
ITS#8281 fix delta-mmr with interrupted refresh

Prevent spurious contextCSN generation
and ignore consumers when we have no contextCSN yet.
But make sure to propagate valid contextCSN updates to
accesslog/syncprov for delta consumers.

8 years agoITS#8280 Fix Windows EOL in test output
Howard Chu [Tue, 20 Oct 2015 23:46:01 +0000 (00:46 +0100)]
ITS#8280 Fix Windows EOL in test output

8 years agoITS#8277 simpler check for syncrepl on config DB
Howard Chu [Tue, 20 Oct 2015 20:27:21 +0000 (21:27 +0100)]
ITS#8277 simpler check for syncrepl on config DB

Windows mutexes are recursive so the trylock test will succeed
even though the mutex is already locked. Just compare be pointers.

8 years agomdb is the recommended backend to OpenLDAP
Quanah Gibson-Mount [Tue, 20 Oct 2015 16:20:26 +0000 (11:20 -0500)]
mdb is the recommended backend to OpenLDAP

8 years agoITS#8273 Windows file:// URL fixup
Howard Chu [Mon, 19 Oct 2015 07:52:28 +0000 (08:52 +0100)]
ITS#8273 Windows file:// URL fixup

8 years agoITS#8258
Howard Chu [Sun, 4 Oct 2015 02:02:04 +0000 (03:02 +0100)]
ITS#8258

8 years agoMerge remote-tracking branch 'origin/mdb.RE/0.9'
Howard Chu [Sun, 4 Oct 2015 01:50:50 +0000 (02:50 +0100)]
Merge remote-tracking branch 'origin/mdb.RE/0.9'

8 years agoITS#8258 fix rebalance/split
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.

8 years agoITS#8262 more
Howard Chu [Fri, 2 Oct 2015 04:14:53 +0000 (05:14 +0100)]
ITS#8262 more

extended ops

8 years agoITS#8262 add ldap_build_*_req functions
Howard Chu [Fri, 2 Oct 2015 04:02:15 +0000 (05:02 +0100)]
ITS#8262 add ldap_build_*_req functions

Basic ops except abandon and unbind; since they get no reply
it's not important for the caller to know their msgID.

8 years agoITS#8261 change sl_mem_detach to sl_mem_setctx
Howard Chu [Thu, 1 Oct 2015 22:55:10 +0000 (23:55 +0100)]
ITS#8261 change sl_mem_detach to sl_mem_setctx

8 years agoITS#8259 fix usage ordering
Howard Chu [Wed, 30 Sep 2015 17:11:20 +0000 (18:11 +0100)]
ITS#8259 fix usage ordering

8 years agoMerge remote-tracking branch 'origin/mdb.RE/0.9'
Howard Chu [Tue, 29 Sep 2015 17:16:11 +0000 (18:16 +0100)]
Merge remote-tracking branch 'origin/mdb.RE/0.9'

8 years agoITS#8221 fix typos
Howard Chu [Tue, 29 Sep 2015 16:31:56 +0000 (17:31 +0100)]
ITS#8221 fix typos

8 years agoMerge remote-tracking branch 'origin/mdb.RE/0.9'
Howard Chu [Sun, 27 Sep 2015 21:38:18 +0000 (22:38 +0100)]
Merge remote-tracking branch 'origin/mdb.RE/0.9'

8 years agoITS#8221, #8256
Howard Chu [Sun, 27 Sep 2015 21:37:28 +0000 (22:37 +0100)]
ITS#8221, #8256

8 years agoITS#8221 don't merge branch pages needlessly
Howard Chu [Sat, 26 Sep 2015 15:50:28 +0000 (16:50 +0100)]
ITS#8221 don't merge branch pages needlessly

8 years agoITS#8256 Create install directories if needed
Luke Yeager [Sat, 19 Sep 2015 01:06:43 +0000 (18:06 -0700)]
ITS#8256 Create install directories if needed

8 years agoITS#8230 add GnuTLS/nettle support
Howard Chu [Fri, 25 Sep 2015 18:28:18 +0000 (19:28 +0100)]
ITS#8230 add GnuTLS/nettle support

8 years agoITS#8230 fix padding count
Howard Chu [Fri, 25 Sep 2015 17:53:05 +0000 (18:53 +0100)]
ITS#8230 fix padding count

8 years agoITS#8230 Don't skip tval on big-endian
Howard Chu [Fri, 25 Sep 2015 17:52:24 +0000 (18:52 +0100)]
ITS#8230 Don't skip tval on big-endian

8 years agoITS#8233 (#8251)
Howard Chu [Tue, 22 Sep 2015 20:43:02 +0000 (21:43 +0100)]
ITS#8233 (#8251)

Schema parsing ignores some slapd.conf rules

8 years agoITS#8249 add option to return search entry
Howard Chu [Thu, 17 Sep 2015 19:41:58 +0000 (20:41 +0100)]
ITS#8249 add option to return search entry

8 years agoITS#7897 fix admin guide syncrepl TLS defaults
Ryan Tandy [Mon, 14 Jul 2014 16:42:14 +0000 (09:42 -0700)]
ITS#7897 fix admin guide syncrepl TLS defaults

In 2.4 syncrepl was changed to take its TLS defaults from the slapd
configuration (commit 1cc1f9b) and the man page was updated to document
that (commit 27dd7a5). This updates the admin guide to match.

8 years agoITS#8244 skip client controls in ldap_back_entry_get()
Howard Chu [Mon, 14 Sep 2015 04:42:20 +0000 (05:42 +0100)]
ITS#8244 skip client controls in ldap_back_entry_get()

8 years agoITS#7377, 8237
Howard Chu [Sat, 12 Sep 2015 22:08:14 +0000 (23:08 +0100)]
ITS#7377, 8237