Ralf Haferkamp
7bec8b6b8b
stop and remove checkpoint task in _db_destroy (ITS#5698)
2008-09-12 09:53:40 +00:00
Howard Chu
e5b96f2c76
Avoid deadlocks on reader txns
2008-08-27 22:28:16 +00:00
Howard Chu
ece2a4daa6
Use read-only txn's instead of read lockers. Support BDB 4.4-4.7
2008-08-27 01:45:35 +00:00
Howard Chu
37d65aed6e
ITS#5322 don't try to free a NULL locker
2008-01-11 00:44:12 +00:00
Kurt Zeilenga
c890c96d13
Happy New Year (belated)
2008-01-08 00:19:56 +00:00
Howard Chu
ddd90958a1
Support DB encryption
2007-12-15 19:07:41 +00:00
Howard Chu
e237f4cc43
Re-introduce hdb dup_compare function, default compares too much
2007-12-06 15:58:47 +00:00
Howard Chu
02f29d51c6
ITS#5183 preliminary fix - this whole approach needs re-design
2007-11-18 20:50:20 +00:00
Howard Chu
0f1bad6fb0
ITS#5186 check for multiple suffixes at config time, not open time
2007-11-07 04:31:06 +00:00
Howard Chu
40e796c547
ITS#5129 fix alock_close with Quick mode
2007-09-08 05:26:03 +00:00
Howard Chu
6a6adff86c
ITS#5129 disallow Quick mode if DB_CONFIG has changed
2007-09-08 04:59:34 +00:00
Pierangelo Masarati
9c437f4411
quote suffix (ITS#5128) and use it as much as possible to identify databases
2007-09-08 00:41:29 +00:00
Howard Chu
4c7d288eb7
More for BDB 4.6 compatibility
2007-08-17 20:33:46 +00:00
Howard Chu
8b27523e4c
Add config keyword for DN cache size (aka EntryInfoSize)
...
default is 2x entry cache size
2007-08-11 19:29:14 +00:00
Howard Chu
a87b4592a4
Remove tool_id2entry_get
2007-08-11 04:19:53 +00:00
Pierangelo Masarati
b713eb5102
add monitor support for unindexed attributes (need to manually #define BDB_MONITOR_IDX)
2007-08-07 22:36:04 +00:00
Pierangelo Masarati
dbad13ead2
workaround open() being a macro in glibc 2.6 (ITS#5075)
2007-08-06 12:57:24 +00:00
Ralf Haferkamp
3a9310431e
Reworked recent backend API changes, now using a separate struct,
...
(ConfigReply) for the error messages.
2007-08-03 12:02:07 +00:00
Ralf Haferkamp
5ae46c195e
Added a new parameter (ConfigArgs*) to the _db_init, _db_open, _db_close and
...
_db_destroy functions.
2007-07-25 17:21:05 +00:00
Howard Chu
1e8350ad3f
Silence warnings in prev commit
2007-07-23 00:02:31 +00:00
Howard Chu
4b3bf1a61a
Set GLUE ocflag on dummy context entry
2007-07-21 00:35:32 +00:00
Howard Chu
a56a8540fd
ITS#4961 read context glue entry if it exists
2007-07-21 00:05:16 +00:00
Howard Chu
4ae77ae266
ITS#4851 retry if opening a supposedly clean shared memory env fails
2007-02-24 20:18:56 +00:00
Howard Chu
10a0900e2e
Fix prev commit, cleanup fakeroot entry before freeing
2007-02-09 17:39:49 +00:00
Howard Chu
94e7e3ba57
Fix prev commit, free fakeroot on teardown
2007-02-09 17:30:23 +00:00
Howard Chu
2d3c48ccd5
ITS#4838 fix fake root handling broken by prev commit
2007-02-09 17:23:00 +00:00
Howard Chu
ea8a2894c4
Free main-thread keys in db_close, can't do it later because the env
...
will be gone.
2007-01-25 12:00:40 +00:00
Howard Chu
001ce8e493
Partially revert prev commit, fix lru_purge loop
2007-01-04 11:01:59 +00:00
Howard Chu
e48f72c1b5
Unify use of BDB lockers
2007-01-04 08:36:59 +00:00
Howard Chu
23a2339090
Fix prev commits...
2007-01-04 03:26:54 +00:00
Howard Chu
f2acc11976
Simpler fix
2007-01-04 03:17:59 +00:00
Howard Chu
831d1cccc7
Fix idl_cache teardown again - skip if cache is empty
2007-01-04 03:14:46 +00:00
Howard Chu
5cfd2f6d97
Use Clock algorithm for IDL cache too
2007-01-03 19:00:07 +00:00
Kurt Zeilenga
da6d9eb046
happy new year
2007-01-02 20:00:42 +00:00
Howard Chu
d7fa1e764d
partial revert - keep acquiring BDB lock in lru_purge.
2007-01-01 01:00:19 +00:00
Howard Chu
a720011c8a
Ditch LRU cache replacement in favor of 2nd-chance/clock.
...
Much better concurrency.
2006-12-31 16:16:48 +00:00
Pierangelo Masarati
8f90eb97ec
use right, although empty, function in bdb_db_destroy()
2006-09-25 23:45:29 +00:00
Pierangelo Masarati
b890f60e36
minor cleanup
2006-09-14 01:05:02 +00:00
Howard Chu
2bfe79fe88
Add BackendInfo.bi_extra for backend custom APIs
...
Use bi_extra for back-monitor entry points. Backends should never
directly reference each other's symbols.
2006-09-13 11:38:51 +00:00
Pierangelo Masarati
6300e449d8
leave monitor calls in place, hide contents; in the long run, enable monitor and build as static by default
2006-09-12 07:53:19 +00:00
Howard Chu
7cd64d384b
Use #ifdef SLAPD_MONITOR for monitor APIs
2006-09-12 02:59:28 +00:00
Pierangelo Masarati
8eab487020
further improve monitoring setup and cleanup
2006-09-09 16:24:35 +00:00
Pierangelo Masarati
1fc5e8e057
cleanup monitoring resources
2006-09-06 12:07:03 +00:00
Pierangelo Masarati
55f24ce8f6
- setup framework for monitoring of back-bdb/back-hdb stuff in their
...
database entry in cn=monitor
- improve support for custom attribute/callback registration
in back-monitor
- design API for registered antry/attr/callback removal in back-monitor
HEADS UP: now back-bdb requires back-monitor to be present, either static
or dynamically loaded __before__ back-bdb/back-hdb is initialized.
This works for sure if both back-bdb & back-monitor are static or dynamic
(provided back-monitor.la is loaded before back_bdb.la); it is not clear
what happens if back-bdb is static and back-monitor is dynamic. In case,
either make back-bdb monitoring conditional, or hardwire back-monitor
much like back-config and back-ldif.
2006-09-06 01:54:54 +00:00
Howard Chu
78172aa0cf
Entry/Attribute struct caching, to minimize malloc fragmentation
...
Note: this breaks LDAP_COMP_MATCH and SLAP_ZONE_MALLOC. But they
were probably broken already anyway.
2006-08-29 01:43:23 +00:00
Kurt Zeilenga
6651d19320
cleanup
2006-05-11 18:55:50 +00:00
Ralf Haferkamp
cf1304147d
Add Pre- and Postread Control to the supported controls (ITS#4538)
2006-05-11 16:45:33 +00:00
Hallvard Furuseth
da0c0360e4
Warnings: Unused vars. funcptr=0, not =NULL. if(b=...) -> if((b=...) != NULL).
2006-04-02 19:54:24 +00:00
Kurt Zeilenga
247536744e
Some more txn infrastructure
2006-03-07 08:07:21 +00:00
Howard Chu
a970038b0c
ITS#4373, fix prev commit
2006-01-25 19:06:16 +00:00