Pierangelo Masarati
da44ccbf18
experimental code for hot restart of proxy cache (ITS#5081)
2007-08-09 16:15:57 +00:00
Pierangelo Masarati
5f386d3e31
fix previous commit
2007-08-06 12:48:35 +00:00
Pierangelo Masarati
add25c2f45
honor 1.1, * and + (ITS#5074 and more)
2007-08-06 12:31:30 +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
Hallvard Furuseth
767293dd3a
Cosmetic change: spaces->tab in last patch. Thus readable with tab-width=4.
2007-07-23 21:50:26 +00:00
Ralf Haferkamp
5b897eef52
Fixed return value of _cleanup function
2007-07-20 17:13:22 +00:00
Ralf Haferkamp
11e8c186bf
ITS#4991 restore save_attrs when a request is finished to let do_search()
...
cleanup correctly
2007-05-31 15:49: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
Kurt Zeilenga
da6d9eb046
happy new year
2007-01-02 20:00:42 +00:00
Howard Chu
6020a6d81d
ITS#4337 implement modrdn for back-config
2006-12-24 00:56:37 +00:00
Howard Chu
69c4495bc2
ITS#4768 more be_add fallout
2006-12-12 21:00:12 +00:00
Pierangelo Masarati
2b242dee14
private database inherits monitoring from underlying one
2006-09-15 00:23:14 +00:00
Pierangelo Masarati
4add034d5d
destroy exactly what needs to
2006-09-14 23:53:23 +00:00
Howard Chu
e04275ca04
Use register_at / register_oc
2006-09-13 13:26:56 +00:00
Hallvard Furuseth
8c1210cb78
Format fixes: %p takes void*, not struct* whose representation may differ.
...
Warning cleanup.
2006-05-25 16:14:41 +00:00
Howard Chu
6f08468e2f
Fix concurrency issues
2006-05-25 05:08:04 +00:00
Howard Chu
5e50d2e2e4
Fix prev commit, LE/GE searches advanced in wrong direction.
...
Terminate EQ/SUBSTR query searches sooner.
2006-05-23 02:53:54 +00:00
Howard Chu
fa2425005a
More cleanup
2006-05-20 05:05:13 +00:00
Howard Chu
b83ef38c51
cleanup debug msg
2006-05-20 05:03:35 +00:00
Howard Chu
fde6482629
Cleanup (revert ITS#4472, etc.)
2006-05-19 15:51:09 +00:00
Howard Chu
e6475734fa
ITS#4549, rewritten query_containment etc...
2006-05-19 15:25:33 +00:00
Howard Chu
f0adb769ad
Cleanup query attrs
2006-05-19 09:15:42 +00:00
Howard Chu
8eace69ddb
Cleanup template searching
2006-05-19 08:07:59 +00:00
Hallvard Furuseth
eca5f7bf2d
ITS#4472: Make t_rwlock a lock pointer instead of a lock, and malloc/free it.
...
That way, realloc(qm->templates...) won't move the ldap_pvt_thread_rdwr_t data.
2006-04-04 23:12:58 +00:00
Howard Chu
abb01fa437
cleanup
2006-04-04 10:47:42 +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
Howard Chu
e18a6ab7f9
ITS#4406 don't cache attrsonly results
2006-02-16 08:16:49 +00:00
Howard Chu
71d439aba7
Use "pcache" dynamic debug level
2006-02-02 08:31:15 +00:00
Howard Chu
57c25cbd68
Fix negative caching again, be sure it's really from zero entries returned
2006-02-02 02:52:54 +00:00
Howard Chu
f50316f141
Use LDAP_DEBUG_CACHE instead of TRACE. Delete remove_mutex.
2006-02-01 19:31:35 +00:00
Howard Chu
bedac8bd60
Fix negative caching, only do it on Success
2006-01-27 22:55:28 +00:00
Howard Chu
51c5916149
ITS#4364 add filter_dup, don't use str2filter to dup filters.
2006-01-23 20:53:52 +00:00
Howard Chu
4361a942ab
Add ability to cache negative results and specify negative TTL on templates
2006-01-18 02:59:06 +00:00
Howard Chu
03f28de8bb
ITS#4225 added proxyCacheQueries parameter for configuring max_queries
2006-01-17 19:51:50 +00:00
Howard Chu
13fdab9509
Optimizations for containment checks
2006-01-09 19:35:03 +00:00
Howard Chu
a393b68656
Plug memleak when query isn't added to cache
2006-01-09 18:00:11 +00:00
Howard Chu
7ce9e7b7c6
Tone down debug messages
2006-01-09 17:27:57 +00:00
Howard Chu
42ec7b40b1
Streamline answerability test
2006-01-09 16:22:55 +00:00
Howard Chu
2be7cf6114
ITS#4316 fix to make attrset subsets work as documented.
2006-01-09 13:56:25 +00:00
Kurt Zeilenga
acbb5cf689
Happy new year!
2006-01-03 23:11:52 +00:00
Pierangelo Masarati
22f05c6785
add support for backend/overlay obsolete names...
2005-11-28 14:13:54 +00:00
Pierangelo Masarati
98936ee3c4
streamline overlay configuration
2005-11-25 12:43:43 +00:00
Pierangelo Masarati
8d19d52467
use time_t for time-related vars
2005-11-24 01:49:06 +00:00
Pierangelo Masarati
9a47e3c81a
use lutil_ato*() whenever appropriate
2005-11-24 01:44:29 +00:00
Pierangelo Masarati
990b435ce0
fix return attributes (ITS#4203)
2005-11-23 10:04:33 +00:00
Pierangelo Masarati
59c4fb1fcd
"relax" previous commit; don't leave locks 'round (ITS#4204)
2005-11-23 09:35:44 +00:00
Pierangelo Masarati
de31e7aa91
quick fix to ITS#4204
2005-11-23 08:47:48 +00:00
Pierangelo Masarati
c580a4182e
make controls as strict as possible
2005-11-23 02:01:51 +00:00
Pierangelo Masarati
478360925b
add some integrity checks on input, without changing syntax nor semantics (ITS#4199)
2005-11-23 01:15:01 +00:00
Howard Chu
06c96f6cf1
Cleanup
2005-11-03 20:38:51 +00:00
Howard Chu
27b197c36d
ITS#4128 use backend_db_init
2005-11-03 20:34:45 +00:00
Kurt Zeilenga
6db7e605ee
Align Operation buffers using LBER_ALIGNED_BUFFER
2005-10-12 23:17:28 +00:00
Pierangelo Masarati
61e06b4ef2
all right, don't worry about free() by now
2005-09-04 23:54:30 +00:00
Pierangelo Masarati
ec532ce885
disable pagedResults or reject
2005-09-04 20:08:35 +00:00
Pierangelo Masarati
ca00d860d6
plug selected leaks at shutdown
2005-08-07 16:38:20 +00:00
Luke Howard
71d76fbeba
slap_mods2entry() should not zero pointers into the modifications
...
list because checking is performed on these, rather than the entry.
slap_mods_free() now takes an extra argument indicating whether to
free the values or not.
2005-08-01 02:16:02 +00:00
Hallvard Furuseth
f841c364eb
Format fixes (%d<->%lu etc)
2005-07-06 05:53:02 +00:00
Howard Chu
8f58409749
Add SLAP_MOD_INTERNAL flag to Modifications, allow internal ops to bypass
...
ACL checks when modifying user-modifiable attributes as non-root user.
2005-06-04 09:44:39 +00:00
Howard Chu
d7745c17d4
Use "pcache" to invoke the overlay instead of "proxycache"
2005-05-24 17:13:37 +00:00
Pierangelo Masarati
7b0d820ce5
minor cleanup
2005-05-20 23:36:23 +00:00
Pierangelo Masarati
5f361f31b3
initialize AttributeName structures; allow '*' attribute set (related to ITS#3741)
2005-05-20 23:27:42 +00:00
Howard Chu
f2e62ea04c
Fix (temporary) crash on ldbm
2005-05-09 11:20:24 +00:00
Howard Chu
1d283c2154
More fixes for overlay support. Converted pcache to config table.
2005-05-09 10:33:43 +00:00
Howard Chu
cd1bdf99e2
Add task names to runqueue entries. Display running tasks under
...
cn=Runqueue,cn=Threads,cn=Monitor
2005-04-23 00:28:43 +00:00
Sang Seok Lim
d2af85fd08
Fixing memory leakage in attribute aliasing
2005-03-29 00:12:05 +00:00
Pierangelo Masarati
429629ff0c
fix previous commit
2005-03-28 18:53:57 +00:00
Pierangelo Masarati
27e5fabb8b
document missing feature; avoid the risk of returning argv in an inconsistent state when an error occurs
2005-03-28 18:51:02 +00:00
Howard Chu
119cbcaba4
Schema unparsing support
2005-03-21 08:31:48 +00:00
Howard Chu
fba9235d0f
Add HARDCODE schema flags
2005-03-21 00:22:54 +00:00
Kurt Zeilenga
dc0eacd40b
Happy New Year!
2005-01-01 20:49:32 +00:00
Howard Chu
5c8fd8bf11
Rename syncrepl_rq to slapd_rq, move to daemon.c
2004-12-03 16:49:23 +00:00
Howard Chu
5f99f7c991
More migration of syncrepl from frontend to syncprov overlay
...
define OPERATION_BUFFER_SIZE for dummy Operations
2004-11-27 00:57:37 +00:00
Howard Chu
90cc409325
Split Operation into Opheader and op
2004-11-25 22:59:00 +00:00
Pierangelo Masarati
f1187e4165
the caching database may need to inherit ACLs and limits from the proxy
2004-11-17 21:38:14 +00:00
Howard Chu
7e87f54716
Revert ITS#3353 patch, it needs to be reworked.
2004-10-06 05:51:38 +00:00
Howard Chu
fda3d6260e
ITS#3353 consolidate slapd globals into a single struct
2004-10-01 07:33:16 +00:00
Pierangelo Masarati
761f287943
multiple precision with BIGNUM/gmp/ulong
2004-09-26 22:58:47 +00:00
Kurt Zeilenga
d611a4b49a
unifdef -UNEW_LOGGING
2004-09-04 04:54:28 +00:00
Pierangelo Masarati
ba7bb04ed3
check if "rootdn" is defined
2004-08-25 14:29:40 +00:00
Pierangelo Masarati
23cbd59126
- proxy cache erroneously returns the filtering attributes
...
and the objectClass right after caching, even if not requested,
while subsequent searches are fine;
- the response callback needs be apended at the end of the
callback list, otherwise the resulting entries are cached
before other overlays can alter them
- the callback structure and its contents needs be freed
2004-08-24 09:24:55 +00:00
Howard Chu
d504ae047e
More for ITS#3288 be_pcl_mutex fixes
2004-08-18 16:43:19 +00:00
Howard Chu
2954a90483
Add backend_startup_one()
2004-07-12 20:27:33 +00:00
Howard Chu
3dedb0839c
Remove redundant code from previous patch
2004-07-10 18:26:05 +00:00
Pierangelo Masarati
7679f37b1d
fix previous commit (needs work)
2004-07-10 15:15:01 +00:00
Pierangelo Masarati
1c2759e689
cache backend was not started up
2004-07-10 11:37:48 +00:00
Pierangelo Masarati
d1b692ceb4
clarify no limits in (internal) searches
2004-06-12 11:33:21 +00:00
Jong Hyuk Choi
aa61c0b122
ITS#3180 Fix
2004-06-08 02:54:21 +00:00
Howard Chu
932d924f50
ITS#3170 fix uninit'd mod.sml_nvalues
2004-06-03 23:09:25 +00:00
Howard Chu
88e2a06b5e
ITS#3151 always reschedule consistency_check task
2004-05-20 00:13:05 +00:00
Howard Chu
73fa8b7dd9
ITS#3153 only cache queries with at least one entry
2004-05-19 23:37:14 +00:00
Howard Chu
69ff27f9d6
ITS#3150 fix uninit'd return_val
2004-05-19 22:07:06 +00:00
Kurt Zeilenga
a122cda534
s/bvalues/values
2004-04-09 20:55:30 +00:00
Kurt Zeilenga
44725e7303
use BER_BVNULL
2004-04-07 04:11:43 +00:00
Howard Chu
7122df3573
Fix search limits due to frontend limit_check change
2004-04-06 23:29:33 +00:00
Howard Chu
464af5aeeb
Don't try to use runqueue in SLAP_TOOL_MODE
2004-04-06 12:21:49 +00:00
Kurt Zeilenga
2fcaa15b90
First rounds of backend/database flag cleanup
2004-04-05 21:00:16 +00:00
Howard Chu
2808c8d302
Fix deadlock in remove_query_data
2004-03-17 20:45:14 +00:00
Howard Chu
448239a6c9
Fix a couple SEGVs
2004-03-17 19:33:35 +00:00
Howard Chu
b36e3a1ab0
ITS#2960 - make sure bi_open gets invoked
2004-02-13 00:42:21 +00:00
Kurt Zeilenga
3c598e89fb
Happy new year
2004-01-01 19:15:16 +00:00
Howard Chu
71c076dd5d
Avoid runtime copying of BackendDB
2003-12-23 14:12:54 +00:00
Kurt Zeilenga
fbba83b20f
notices and acknowledgements
2003-12-08 17:41:40 +00:00
Howard Chu
be1a728c5b
Added sc_next and sc_cleanup to slap_callback
2003-12-07 08:51:23 +00:00
Howard Chu
9d3c808428
Fix bogus free
2003-12-06 23:54:22 +00:00
Howard Chu
44fc00b4c0
Remove trailing whitespace
2003-12-06 23:53:46 +00:00
Howard Chu
11a4b3eb57
Use runqueue for consistency checker
2003-12-06 23:32:56 +00:00
Howard Chu
0cef026e98
More memory cleanup
2003-12-06 21:55:47 +00:00
Howard Chu
1a9064794a
Fix add invocation
2003-12-06 13:48:06 +00:00
Howard Chu
7751af3f74
Perform database updates as root
2003-12-06 11:25:37 +00:00
Howard Chu
64e337eacf
Overlay build environment
2003-12-06 10:59:27 +00:00
Howard Chu
58355c5bc2
Proxy-cache rewritten as an overlay
2003-12-05 15:49:38 +00:00