Commit Graph

1284 Commits

Author SHA1 Message Date
Pierangelo Masarati
fb2d3926ce only abort update if failed pre/post read control is critical: the only thing RFC 4527 says about failure is that in case of failure of the read, no control is appended to the result message; maybe no failure should ever occur (please review) 2006-10-14 01:08:41 +00:00
Pierangelo Masarati
576646abb1 DB_BUFFER_SMALL is BDB 4.4 only 2006-09-27 12:34:00 +00:00
Ralf Haferkamp
e1f068f712 Check for the correct return code of cursor->c_get() (DB_BUFFER_SMALL) 2006-09-27 10:51:06 +00:00
Pierangelo Masarati
067d6904c2 don't know exactly the reason, but here without this back-hdb suddenly starts crashings all times (since bdb_monitor_* stuff) 2006-09-26 08:43:01 +00:00
Pierangelo Masarati
8f90eb97ec use right, although empty, function in bdb_db_destroy() 2006-09-25 23:45:29 +00:00
Howard Chu
db082f4b1d Fix prev commit 2006-09-20 20:22:59 +00:00
Howard Chu
f63f46f0b1 Use a single malloc for entry_decode instead of two - partially decode
the entry to get nvals first, so the size can be computed.
2006-09-20 02:43:47 +00:00
Pierangelo Masarati
c0c089f4a4 make sure we don't interfere with frontend's entry when the suffix is empty (test027) 2006-09-17 16:45:24 +00:00
Kurt Zeilenga
2c4b2b5566 return structuralObjectClass errors
(likely need to be applied to other backends)
2006-09-16 11:48:52 +00:00
Pierangelo Masarati
c92571680d also work with pcache 2006-09-15 00:16:55 +00:00
Pierangelo Masarati
b890f60e36 minor cleanup 2006-09-14 01:05:02 +00:00
Howard Chu
5342ce61dd Add register_at / register_oc helpers. 2006-09-13 12:48:45 +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
Howard Chu
c6ed29dc3c Fix uninit'd *cb (Coverity scan) 2006-09-09 22:15:45 +00:00
Pierangelo Masarati
8eab487020 further improve monitoring setup and cleanup 2006-09-09 16:24:35 +00:00
Pierangelo Masarati
4350ce5189 cleanup names 2006-09-08 22:10:49 +00:00
Pierangelo Masarati
b60990780f custom monitoring can be enabled/disabled via config 2006-09-06 23:08:57 +00:00
Pierangelo Masarati
4d55aeb57c cleanup subsystems monitoring OID handling 2006-09-06 16:06:49 +00:00
Pierangelo Masarati
103485bf99 fix use with back-hdb 2006-09-06 15:11:54 +00:00
Pierangelo Masarati
1fc5e8e057 cleanup monitoring resources 2006-09-06 12:07:03 +00:00
Pierangelo Masarati
6ce47650c9 - objectClass is now AUXILIARY (modifies existing object...)
- moved directory path publication from back-monitor/database.c
- added cleanup handler
- minor cleanup
2006-09-06 09:10:46 +00:00
Howard Chu
9c2c30f541 Return current entry/IDL cache counts 2006-09-06 03:37:13 +00:00
Pierangelo Masarati
c67913ce1c don't get mad if monitor database is not configured 2006-09-06 02:14:32 +00:00
Pierangelo Masarati
ae1481ba62 minor cleanup; plug couple of one-time leaks 2006-09-06 02:06:45 +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
Pierangelo Masarati
afdae4272a don't run useless (and likely to fail) checks, if possible 2006-08-30 21:05:05 +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
Quanah Gibson-Mount
88ce76f24e fix e_private value, goes along with memory leak fix to accesslog.c 2006-08-26 23:20:00 +00:00
Kurt Zeilenga
d3e288dffe s/managedit/relax/
#unifdef -DSLAP_RELAX
2006-08-22 23:31:46 +00:00
Howard Chu
2a2115d70c Fix prev commit, update kid counters too 2006-07-19 00:06:57 +00:00
Howard Chu
0340a1f1bf ITS#4616 fix cache_modrdn bei_state management 2006-07-18 10:22:48 +00:00
Howard Chu
bab03f6d5c Additional purge changes for rev 1.120, don't keep the current thread
busy unnecessarily
2006-07-12 01:55:21 +00:00
Howard Chu
70512edd5a ITS#4572 don't unlock non-existent locks 2006-06-01 02:03:10 +00:00
Howard Chu
9e50b2d0a1 ITS#4552 just rely on ACLs when adding entries under the suffix. 2006-05-18 01:18:48 +00:00
Pierangelo Masarati
b0c304f759 fix referral rewriting (ITS#4548) 2006-05-16 00:57:46 +00:00
Howard Chu
d921fcb0c9 ITS#4531 temporarily go back to using quick sort instead of radix sort 2006-05-11 20:05:53 +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
Ralf Haferkamp
b8bf18f36b ITS#4532: check *pre/postread_ctrl before freeing 2006-05-10 09:07:37 +00:00
Howard Chu
2a5ecbccaa Remove some more yield() calls 2006-05-03 07:41:12 +00:00
Kurt Zeilenga
eb9a3c1876 unifdef -DSLAP_ACL_HONOR_DISCLOSE
unifdef -DSLAP_ACL_HONOR_MANAGE
unifdef -DSLAP_OVERLAY_ACCESS
unifdef -DSLAP_ORDERED_PRETTYNORM
unifdef -DSLAP_AUTHZ_SYNTAX
Move LDAP_COLLECTIVE_ATTRIBUTES, LDAP_COMP_MATCH, and LDAP_SYNC_TIMESTAMP
back behind LDAP_DEVEL (as these either too experimental or not yet
implemented).
2006-04-12 05:53:26 +00:00
Kurt Zeilenga
c48338233e s/LDBM/BDB/ 2006-04-08 04:24:12 +00:00
Howard Chu
c76eb501ab Revert cache-purge task, go back to purging inline 2006-04-05 07:17:11 +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
Hallvard Furuseth
581c1ff6c7 Cast ctype.h char arguments to unsigned char 2006-04-01 23:44:42 +00:00
Howard Chu
c002351982 cleanup 2006-03-31 22:24:39 +00:00
Howard Chu
c41a151d1e Cleanup 2006-03-31 12:53:32 +00:00
Howard Chu
0af1940f3f plug leaks 2006-03-31 12:20:04 +00:00
Howard Chu
90c8a53db4 plug leaks 2006-03-31 11:15:26 +00:00
Kurt Zeilenga
5487575086 Add link to FAQ entry on BDB tuning 2006-03-30 17:56:56 +00:00
Kurt Zeilenga
71511a0569 more txn infrastructure 2006-03-08 05:54:10 +00:00
Kurt Zeilenga
815c178edc control/TXN cleanup 2006-03-07 22:05:57 +00:00
Kurt Zeilenga
247536744e Some more txn infrastructure 2006-03-07 08:07:21 +00:00
Howard Chu
9eca89acc8 Improve prev commit 2006-02-09 07:02:40 +00:00
Howard Chu
6344d36df0 Same as ITS#4385, must wake listener after submitting job to runqueue 2006-02-09 06:53:49 +00:00
Howard Chu
fe3b6d0071 ITS#4384 rework entryCSN handling, retrieve from incoming request
if it was provided. Always check and graduate, regardless of shadow status.
2006-02-05 01:09:48 +00:00
Howard Chu
a970038b0c ITS#4373, fix prev commit 2006-01-25 19:06:16 +00:00
Kurt Zeilenga
f5b9ff7940 unifdef -DSLAPD_CONF_UNKNOWN_BAILOUT -DSLAPD_CONF_UNKNOWN_IGNORED=""
-DSLAPD_DEBUG_CONFIG_ERROR=LDAP_DEBUG_ANY
2006-01-24 04:40:01 +00:00
Howard Chu
3407467ca2 ITS#4361, 4362 fix autorecovery logic, add ALOCK_NOSAVE flag to record
txn/non-txn status of the environment.
2006-01-22 13:51:33 +00:00
Howard Chu
bf0692d5ba ITS#4360 must init c_minfree 2006-01-22 05:11:23 +00:00
Howard Chu
a4a85e03c1 ITS#3950 delete gratuitous yield()s 2006-01-15 13:33:29 +00:00
Howard Chu
34cefbe0ad ITS#4324 don't auto-recover in slapcat. Don't trigger a recovery if
DB_CONFIG has same mtime as DB environment.
2006-01-11 15:38:30 +00:00
Pierangelo Masarati
697df7cc06 silence warning 2006-01-07 11:06:32 +00:00
Pierangelo Masarati
3037a199d4 part of o_csn memory handling cleanup 2006-01-06 16:32:33 +00:00
Pierangelo Masarati
80dac35c5e cleanup previous commit 2006-01-06 16:04:07 +00:00
Pierangelo Masarati
d384ab5ad9 allow addiion of suffix entry when default referral is defined (ITS#4310) 2006-01-06 14:50:43 +00:00
Howard Chu
a614a1c16e Cleanup task declarations 2006-01-06 04:06:18 +00:00
Howard Chu
e82ce6444c ITS#4308 fix cache flush task interval 2006-01-06 03:51:56 +00:00
Pierangelo Masarati
b18ba481cf re-fix ITS#4260 2006-01-05 21:22:50 +00:00
Kurt Zeilenga
acbb5cf689 Happy new year! 2006-01-03 23:11:52 +00:00
Luke Howard
e7f164773e Remove RDN checks/logging -- now done by frontend 2006-01-02 15:38:04 +00:00
Pierangelo Masarati
9c7aca5b47 fix indentation 2006-01-02 08:18:29 +00:00
Luke Howard
b6fffd1417 Add orr_modlist member to request structure, containing a list of
modifications to be applied by the backend atomically with a modify
RDN request.

Handle updating of RDN values in frontend.

Code that calls a backend's be_modrdn should call slap_modrdn2mods(op, rs)
before invoking the backend and cleanup with slap_mods_free( op->orr_modlist, 1 ).
See do_modrdn() for an example.
2006-01-01 09:23:24 +00:00
Howard Chu
059257aeaf cleanup db_close 2005-12-20 00:55:39 +00:00
Howard Chu
684c01ed1f ITS#4259 revert prev commit, fixed in alock.c instead. 2005-12-20 00:48:15 +00:00
Howard Chu
5b7f102ad2 ITS#4259 don't try to alock_close if we never opened... 2005-12-20 00:44:05 +00:00
Pierangelo Masarati
b984e616c3 remove support for control as the operation is now incompatible 2005-12-16 15:01:59 +00:00
Pierangelo Masarati
1c523e3548 anticipate sr_err/sr_ref cross-check, so that the right error gets logged 2005-12-16 11:33:11 +00:00
Pierangelo Masarati
e841c3b73b reset bi_attrs after reindexing (ITS#4260) 2005-12-16 00:44:13 +00:00
Pierangelo Masarati
53d41587ad __should__ fix ITS#4262; please review 2005-12-16 00:04:51 +00:00
Pierangelo Masarati
e788a5c380 first part of fix to ITS#4262 2005-12-15 23:46:23 +00:00
Howard Chu
dd3d53fd85 Fix ITS#4263 2005-12-15 22:52:31 +00:00
Pierangelo Masarati
93e8395e30 log what is being modified 2005-12-15 17:45:31 +00:00
Howard Chu
553b2884ab cache LRU concurrency improvements, reorder DB accesses for consistency 2005-12-09 00:20:18 +00:00
Howard Chu
3e062a3f35 ITS#4254 fix lock ordering 2005-12-08 23:45:47 +00:00
Howard Chu
2bb6555726 ITS#4250 bdb_idl_delete needs to check for Range 2005-12-07 01:54:50 +00:00
Pierangelo Masarati
f29447d9de use helper to destroy modrdn modifications... 2005-12-06 22:55:30 +00:00
Howard Chu
dcaa6aa830 ITS#4226 must close cursor when limiting candidate check 2005-11-29 11:34:47 +00:00
Howard Chu
a0d9bd7890 ITS#4223 don't store negative results in IDL cache 2005-11-28 22:53:03 +00:00
Kurt Zeilenga
0d56ddda04 unifdef -DBDB_SUBENTRIES -DLDBM_SUBENTRIES 2005-11-27 01:03:03 +00:00
Kurt Zeilenga
48cb85865d Remove some unnecessary #ifdefs 2005-11-26 07:38:18 +00:00
Howard Chu
d84ffb62a6 ITS#4210 don't setup indexing threads if no indexing is defined. 2005-11-25 22:50:25 +00:00
Pierangelo Masarati
b3c8a976ec use LDAP_SIZELIMIT_EXCEEDED; rework the return values of slap_send_search_entry(); silence a few warnings 2005-11-25 22:17:24 +00:00
Pierangelo Masarati
ea83f6a669 check sizelimit in frontend (ITS#4213) 2005-11-25 00:28:33 +00:00
Pierangelo Masarati
d34fffcaf9 use lutil_ato*() whenever appropriate 2005-11-24 01:10:05 +00:00
Howard Chu
7a46ab6e04 ITS#4201 undo all bdb_db_open() steps if any step fails. 2005-11-23 23:57:40 +00:00
Howard Chu
2b9c8076cc In hdb_dn2idl_internal, skip cursor get when dkids == 1 2005-11-20 22:32:39 +00:00
Howard Chu
3429c5a566 ITS#4186 hdb_idl_append() must not alter the tmp input. 2005-11-20 22:02:41 +00:00