Commit Graph

20080 Commits

Author SHA1 Message Date
Howard Chu
f48f085ed8 Add mdb_get for sorted dups 2011-09-01 16:17:07 -07:00
Howard Chu
e3703ab58c Add mdb_del for sorted dups 2011-09-01 16:17:07 -07:00
Howard Chu
bb6a034e28 Add mdb_put for sorted dups 2011-09-01 16:17:07 -07:00
Howard Chu
51e210c604 Fix reader txn locking 2011-09-01 16:17:07 -07:00
Howard Chu
e3b668e84a Don't malloc the free_pgs list every time 2011-09-01 16:17:07 -07:00
Howard Chu
9f0b00b467 Setup context for sorted dups 2011-09-01 16:17:07 -07:00
Howard Chu
e5cf84495b Add explicit md_dirty flag to dbxs 2011-09-01 16:17:07 -07:00
Howard Chu
edf7869466 Add cursor_prev 2011-09-01 16:17:07 -07:00
Howard Chu
cc56ba04fb Use BDB cursor terminology 2011-09-01 16:17:07 -07:00
Howard Chu
60550e14ee Add some legalese
Note derived from Martin Hedenfalk's btree.c; the code
is significantly reworked but owes a lot to the original.
2011-09-01 16:17:07 -07:00
Howard Chu
36b0883564 Additional debug, fixes
Fixed order of mdb_del0 operations
Drop in-memory free list from env on txn_abort
2011-09-01 16:17:07 -07:00
Howard Chu
4ba37eed5e Save free-list in DB 2011-09-01 16:17:07 -07:00
Howard Chu
852ac0e3bc More sub-db stuff 2011-09-01 16:17:07 -07:00
Howard Chu
a687f2dc3c Use STAILQ instead of SIMPLEQ
For compat with ancient BSD. Will probably just copy <ldap_queue.h> instead.
2011-09-01 16:17:07 -07:00
Howard Chu
1f3fdc811e More subdb stuff, add cursor_last() 2011-09-01 16:17:07 -07:00
Howard Chu
9b4c689601 Tweak mt_dbxs array 2011-09-01 16:17:07 -07:00
Howard Chu
8211dd3960 Fix free page re-use 2011-09-01 16:17:07 -07:00
Howard Chu
415d98755d Fixup metapage writes 2011-09-01 16:17:06 -07:00
Howard Chu
4fd0f278d2 Tweaks to txn handling 2011-09-01 16:17:06 -07:00
Howard Chu
f89d0cc4b7 More subDBs, compiles now 2011-09-01 16:17:06 -07:00
Howard Chu
cb45191793 Start DB restructuring 2011-09-01 16:17:06 -07:00
Howard Chu
194334b2f7 Replace ulong with ULONG macro 2011-09-01 16:17:06 -07:00
Howard Chu
2766e88eeb More prep for subdatabases 2011-09-01 16:17:06 -07:00
Howard Chu
86e78566e3 Tweak comment about overflow allocations 2011-09-01 16:17:06 -07:00
Howard Chu
bc0ca49d16 Use an environment directory
Go back to using an mmap'd lock file
2011-09-01 16:17:06 -07:00
Howard Chu
5a72c6a294 No longer need -lssl 2011-09-01 15:53:33 -07:00
Howard Chu
5e6f32243c Fix db_stat stuff 2011-09-01 15:53:33 -07:00
Howard Chu
3f025d1d4c More fixes for seeking 2011-09-01 15:53:33 -07:00
Howard Chu
27ab75ef36 Re-use old pages 2011-09-01 15:53:33 -07:00
Hallvard Furuseth
893aa3eddb tests/data/: #bdb,hdb# -> #maindb/indexdb#.
Done for keywords index,limits.  (Also do 'mode' if there were any cases.)
Change generated by:  perl -i -pw0777e '
  INIT { $q=qr/\#(?:[bh]|index|main)db\#/im; $k=qr/(?:index|limits|mode)\b/ }
  0 while s/^$q($k.*\n)((?:$q.*\n)*?)\n?$q\1/\#maindb\#$1$2/imo;
  s/^\#maindb\#index/\#indexdb\#index/igm;
' tests/data/*.* tests/data/regressions/*/*.*
2011-09-01 13:53:03 +02:00
Hallvard Furuseth
404299371c tests: Add $MAINDB, $INDEXDB for [bhn]db tests.
Simplifies tests for the DB storage backends.
Adds indexing etc to ndb in some cases, to match bdb/hdb.
This also fixes some broken back-null/back-ldif settings.
2011-09-01 13:37:36 +02:00
Howard Chu
568d3a05d2 Also track skipped (non-executable) tests 2011-08-31 17:35:06 -07:00
Howard Chu
9af5e181cb Add NOEXIT envvar to run all tests and tally failures 2011-08-31 15:15:39 -07:00
Howard Chu
8d74f717ff For test063
add hex timestamp to lutil_debug() output
Fix LASTMOD race condition in accesslog.c
Set refreshInterval even if using refreshAndPersist, since
fallbacks will use refresh params
2011-08-30 19:16:39 -07:00
Howard Chu
4f35d789ac Relax entry_header, zero-length entries are valid. 2011-08-27 14:48:04 -07:00
Howard Chu
c617f3c3b9 ITS#7029,#7031 More for prev commit 2011-08-26 16:56:43 -07:00
Howard Chu
889154d798 Fix moduleload path 2011-08-26 14:33:30 -07:00
Howard Chu
eae46d35d2 ITS#7030 fix overlay_insert() with specific index 2011-08-25 20:51:30 -07:00
Howard Chu
1c476b302e ITS#6983 fix duplicate entry in HDB subtree IDL 2011-08-25 14:47:23 -07:00
Howard Chu
ab69775dd0 ITS#7029 fix uninit'd nvalue 2011-08-24 16:09:37 -07:00
Jan Vcelak
4b9d680f55 ITS#7028 man: ldap_sync(3) ldap_sync_destroy type 2011-08-24 15:43:18 -07:00
Jan Vcelak
e422c3c919 ITS#7028 man: slapo-unique(5) quoting keywords 2011-08-24 15:42:04 -07:00
Francis Swasey
27ca42b555 ITS#7023 document TLSCACertificateFile in the man page as it is in the Admin Guide 2011-08-24 15:39:31 -07:00
Howard Chu
6546ecd39c ITS#7022 cleanup prev commit 2011-08-24 15:37:52 -07:00
Rich Megginson
a7aac14d2a ITS#7022 NSS_Init* functions are not thread safe
The NSS_InitContext et. al, and their corresponding shutdown functions,
are not thread safe.  There can only be one thread at a time calling
these functions.  Protect the calls with a mutex.  Create the mutex
using a PR_CallOnce to ensure that the mutex is only created once and
not used before created.  Move the registration of the nss shutdown
callback to also use a PR_CallOnce.  Removed the call to
SSL_ClearSessionCache() because it is always called at shutdown, and we must
not call it more than once.
2011-08-24 15:34:47 -07:00
Jan Vcelak
3dae953fd6 ITS#7014 TLS: don't check hostname if reqcert is 'allow'
If server certificate hostname does not match the server hostname,
connection is closed even if client has set TLS_REQCERT to 'allow'. This
is wrong - the documentation says, that bad certificates are being
ignored when TLS_REQCERT is set to 'allow'.
2011-08-24 15:27:29 -07:00
Howard Chu
fdb3443366 More abandon paranoia 2011-08-24 14:57:36 -07:00
Howard Chu
5829eb44a1 ITS#7025 handle Abandon in backglue 2011-08-23 13:48:59 -07:00
Howard Chu
4f5d087b4f Don't replicate refint repair ops 2011-08-22 14:05:58 -07:00
Pierangelo Masarati
415b8ec84b release mutex only *after* backend connection initialization (ITS#6993) 2011-08-22 11:23:54 -06:00