Commit Graph

1400 Commits

Author SHA1 Message Date
Quanah Gibson-Mount
9602d401a5 cleanup 2007-11-11 20:32:18 +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
8bc46e741a ITS#5191 do all pagedresult control parsing in the frontend, don't
re-parse in the backend. Keep track of pagedresult controls and state
in backglue.
2007-11-01 15:11:22 +00:00
Howard Chu
d7535d4ddc ITS#5189 revert index.c 1.67, just catch LDAP_OTHER 2007-10-23 00:25:51 +00:00
Howard Chu
bb1d8dfcd7 Fix prev commit, include errno.h 2007-10-23 00:05:03 +00:00
Howard Chu
9965fc5f60 ITS#5189 recognize ENOMEM 2007-10-23 00:03:56 +00:00
Howard Chu
e63ac9ac9e Fix error message propagation 2007-10-15 10:22:51 +00:00
Howard Chu
a8ba9e2131 Check DB directory validity at config time 2007-10-15 10:17:04 +00:00
Pierangelo Masarati
24db207196 check for ee == NULL 2007-09-26 22:37:35 +00:00
Howard Chu
d2179d885f Use attr_valfind instead of value_find_ex to optimize lookups 2007-09-24 05:02:31 +00:00
Howard Chu
e8c2414831 Preliminary sorted value support 2007-09-24 01:31:23 +00:00
Howard Chu
c4dbe1a274 Attribute/Modification value counters 2007-09-21 08:43:56 +00:00
Pierangelo Masarati
d92e8ad1f7 add helper for internal searchs for objectClass=* 2007-09-15 17:38:53 +00:00
Pierangelo Masarati
06e6e6c053 apply Howard's cleanup of database monitoring registration 2007-09-15 15:34:49 +00:00
Pierangelo Masarati
202080dfa1 enable unindexed searches monitoring ifdef LDAP_DEVEL 2007-09-12 21:26:10 +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
Pierangelo Masarati
2da15f1013 remove experimental code as per ITS#4962 discussion 2007-09-07 12:33:21 +00:00
Pierangelo Masarati
ed12ff8fd3 parse unsigned as unsigned (ITS#5122) 2007-09-04 19:32:54 +00:00
Pierangelo Masarati
371bf8f803 blind fix: I assume we need to restore ors_scope 2007-09-04 19:31:47 +00:00
Pierangelo Masarati
c73520ec08 fix idl lru deletion of last entry (ITS#5121) 2007-09-04 19:01:55 +00:00
Howard Chu
75964a771f Use IA5String for olcDbConfig to allow empty strings 2007-09-03 00:41:30 +00:00
Howard Chu
33f311d81f Read DB_CONFIG file in server and tool mode, for config conversions 2007-09-02 23:53:29 +00:00
Pierangelo Masarati
c83b8b58a3 hide (experimental) schema 2007-09-01 16:01:29 +00:00
Pierangelo Masarati
e161e8efb6 fix test 2007-08-29 00:13:56 +00:00
Pierangelo Masarati
0bedad3b65 plug leak 2007-08-28 23:56:18 +00:00
Pierangelo Masarati
7c66952714 check for shutdown (need to add to other backends?) 2007-08-26 15:38:51 +00:00
Howard Chu
8367f0cfe4 revert prev commit, no gain 2007-08-26 14:37:12 +00:00
Howard Chu
ddc5c9f735 Just use read locks on the entry_db_lock 2007-08-26 13:49:35 +00:00
Pierangelo Masarati
071b77cf9d better fix 2007-08-25 15:01:27 +00:00
Pierangelo Masarati
84143631ee fix potential concurrency issue (not so potential, if we could regularly trigger it :) 2007-08-25 14:58:43 +00:00
Pierangelo Masarati
8f95ff260c consistently use "tag=" instead of "op=" in debug messages 2007-08-25 00:10:52 +00:00
Howard Chu
4c7d288eb7 More for BDB 4.6 compatibility 2007-08-17 20:33:46 +00:00
Pierangelo Masarati
553d83c3c1 fix previous commit 2007-08-17 12:38:50 +00:00
Pierangelo Masarati
36111934a3 allow "traditional" behavior (more for ITS#4962; please debate) 2007-08-17 09:51:29 +00:00
Pierangelo Masarati
2f5bfba296 let req_modify_s and req_modrdn_s have a common portion to interoperate within slap_mods_opattrs() (ITS#5093) 2007-08-16 09:48:53 +00:00
Pierangelo Masarati
27428ac00e uniformly exploit rootdn bind; add support for rootdn bind to backends that didn't have it (ITS#4962) 2007-08-16 09:38:15 +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
Howard Chu
ed4b5d1bd7 ITS#5087 fix tool_id2entry_get for hdb
TODO: rip this all out and just use tool_entry_get
2007-08-11 02:11:27 +00:00
Pierangelo Masarati
97d2c51980 improve previous commit: now each missing index has a specific counter 2007-08-08 18:22:19 +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
b514b25795 Quick and dirty BDB 4.6.18 support. Expect this to change again soon. 2007-07-24 14:02:37 +00:00
Howard Chu
1e8350ad3f Silence warnings in prev commit 2007-07-23 00:02:31 +00:00
Howard Chu
e0cb8bcf98 Delete extraneous test in prev commit 2007-07-22 17:19:21 +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
fb5568bd45 ITS#5052 fix Quick mode erroneously indexing ID#0 2007-07-20 14:42:31 +00:00
Quanah Gibson-Mount
c3e347c11f Change db == NULL to rc == LDAP_INAPPROPRIATE_MATCHING
as a half-way step for ITS#5037
2007-07-10 00:24:05 +00:00
Quanah Gibson-Mount
88a4ffe5be ITS#5037
Move db == NULL check to correct spot
2007-07-09 21:28:14 +00:00
Hallvard Furuseth
4586ede1ab ITS#5007: Rename label "leave"; OSF1 pthread.h makes it as an exception keyword 2007-06-09 23:45:23 +00:00
Pierangelo Masarati
133035cdd2 do not try to register custom monitor stuff when subordinate (related to ITS#4965); note: this might not be the best solution, because it does not allow to monitor subordinate databases; however, right now it's necessary, since subodinate databases do not register themselves in back-monitor 2007-06-09 14:14:45 +00:00
Hallvard Furuseth
93fbb87545 Give OperationBuffer normal struct members instead of using
LBER_ALIGNED_BUFFER(OPERATION_BUFFER_SIZE), as discussed in ITS#4078.
Add a corresponding SyncOperationBuffer in overlays/syncprov.c.
2007-05-18 23:54:26 +00:00
Hallvard Furuseth
7372fea8b5 printf format paranoia: macros could be changed to contain format chars 2007-05-18 14:48:28 +00:00
Pierangelo Masarati
a01d9f961d fix no-op crasher (ITS#4925) 2007-04-11 20:31:49 +00:00
Hallvard Furuseth
1c87542ea1 Add missing return from void *bdb_tool_trickle_task() 2007-04-09 22:45:21 +00:00
Howard Chu
87466fc7c8 Add trickle-sync for quick mode 2007-04-07 06:10:01 +00:00
Hallvard Furuseth
8e5beab1e8 printf %p expects void* 2007-04-04 17:49:31 +00:00
Howard Chu
0752716d80 Remove obsolete purge (obsoleted in cache.c rev 1.106) 2007-03-22 07:35:10 +00:00
Pierangelo Masarati
226133ea38 don't add databases twice; but try as hard as possible... 2007-03-21 23:22:49 +00:00
Pierangelo Masarati
d0fe3b0890 allow adding of back-bdb with monitoring on (ITS#4789) 2007-03-21 22:35:37 +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
fb583c3071 Revert prev commit 2007-02-08 10:29:40 +00:00
Howard Chu
57c5bbf7e4 Just use a readlock in cache loader 2007-02-08 09:27:35 +00:00
Howard Chu
0c25783cee use dn2id index for extended filters using entryDN 2007-02-08 06:43:28 +00:00
Howard Chu
df31c884b4 Free main-thread keys in db_close, can't do it later because the env
will be gone.
2007-01-25 12:24:52 +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
183a0f3719 ITS#4810 bi_entry_get_rw() must return the entry regardless of whether
it's an alias or referral or not
2007-01-25 04:31:23 +00:00
Howard Chu
9a8b3f711e Only sort the first time 2007-01-17 10:43:37 +00:00
Howard Chu
5d4c8f86bf Fix prev commit 2007-01-17 10:02:53 +00:00
Howard Chu
ecb06964c5 Cleanup prev commit 2007-01-17 02:46:41 +00:00
Howard Chu
9898983d58 Minor tweaks, put dup EntryInfo's on free list instead of destroying them 2007-01-17 02:43:05 +00:00
Howard Chu
1f853acfc9 Shortcut when no index info is present 2007-01-15 01:27:02 +00:00
Howard Chu
5d3f3c240d ITS#4554 slapindex takes a list of attributes to index 2007-01-15 01:14:14 +00:00
Howard Chu
b941856404 Set upper bound on EntryInfos, fixed at 4x Entry cachesize.
Probably should be tunable. Probably should add hit/miss counters
to monitor to assist in tuning...
2007-01-12 07:35:34 +00:00
Hallvard Furuseth
d16754c81b Delete unused variables. 2007-01-11 12:04:22 +00:00
Howard Chu
5bcd9243f2 Don't zero out attr value flags 2007-01-10 20:48:37 +00:00
Howard Chu
a2e299eb22 ITS#4799 remove kerberos / kbind 2007-01-10 00:23:28 +00:00
Howard Chu
813cca89a6 ITS#4797 2007-01-08 19:10:23 +00:00
Howard Chu
2082b1f9f0 Avoid calling purge too often 2007-01-05 06:49:25 +00:00
Howard Chu
001ce8e493 Partially revert prev commit, fix lru_purge loop 2007-01-04 11:01:59 +00:00
Howard Chu
57fa57b1d1 Fix HDB - don't use IDL cache when it's not configured 2007-01-04 10:56:18 +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
e094bef172 Remember our own success code in case an overlay changes it 2007-01-03 20:28:56 +00:00
Howard Chu
5cfd2f6d97 Use Clock algorithm for IDL cache too 2007-01-03 19:00:07 +00:00
Howard Chu
6d1ca0a769 Delete unused idl_cache_entry rwlock field 2007-01-03 05:36:49 +00:00
Kurt Zeilenga
da6d9eb046 happy new year 2007-01-02 20:00:42 +00:00
Howard Chu
822888eafc Bypass a few redundant locks 2007-01-01 11:44:39 +00:00
Howard Chu
6074f48fa7 Tweak cache_lru_print 2007-01-01 11:17:13 +00:00
Howard Chu
a5546a22a8 Fix prev commit, hdb_cache_find_parent 2007-01-01 07:09:22 +00:00