Commit Graph

1566 Commits

Author SHA1 Message Date
Pierangelo Masarati
d85e24dfa3 fix return 2010-02-17 20:08:07 +00:00
Ralf Haferkamp
5ceb2cd4e0 ITS#6467, use memcpy instead for strcpy when copying across array
boundaries. To account for stricter checks when using -D_FORTIFY_SOURCE=2
with GCC 4.5
2010-02-15 15:25:47 +00:00
Ralf Haferkamp
bca52e1b18 ITS#6469, don't touch op_attrs when updatedn is modifying contextCSN 2010-02-05 11:49:49 +00:00
Pierangelo Masarati
0cf528630f implement support for selective iteration in slaptools (ITS#6442) 2010-01-18 15:00:40 +00:00
Howard Chu
b8a1da95a2 dn2id_lock is no longer needed 2010-01-11 22:14:15 +00:00
Hallvard Furuseth
ca563787ad Silence "maybe uninitialized" warning (eprev after 0 iterations, cannot happen) 2009-11-30 14:00:18 +00:00
Howard Chu
f685d9e78b Clean up prev commit 2009-11-04 06:09:51 +00:00
Howard Chu
f6983802e2 More for ITS#6360 2009-11-04 05:52:04 +00:00
Howard Chu
0ecb68e02d ITS#6360 fix cache cursize count 2009-11-04 00:47:45 +00:00
Hallvard Furuseth
dc26fb37eb Fix previous commit: backslash-space-newline -> backslash-newline 2009-10-21 20:15:15 +00:00
Ralf Haferkamp
96ce821037 ITS#6341 removal of last entry from cache caused corruption in the lru list 2009-10-20 14:41:09 +00:00
Pierangelo Masarati
49b1729ad7 don't dereference pointer in case of error 2009-10-19 23:41:11 +00:00
Pierangelo Masarati
b928fa97d8 silence warning 2009-08-19 13:02:54 +00:00
Pierangelo Masarati
8da69a9249 silence warnings 2009-08-19 12:55:15 +00:00
Pierangelo Masarati
f3cdcadf89 wrap gmtime for reentrancy (ITS#6262) 2009-08-18 23:48:15 +00:00
Pierangelo Masarati
5c62c82e00 more about ITS#6243 2009-08-17 23:05:48 +00:00
Howard Chu
016c518652 ITS#6230 fix typos 2009-07-27 18:54:56 +00:00
Howard Chu
474991afdf ITS#6222 dncachesize defaults to 0 == unlimited 2009-07-25 07:13:50 +00:00
Ralf Haferkamp
d430fa0346 error out when adding multiple olcIndex values for the same attribute (ITS#6196) 2009-07-03 14:29:40 +00:00
Howard Chu
53f8b761f1 More for ITS#6177 2009-06-19 07:11:01 +00:00
Howard Chu
68e252c9a9 ITS#6177 proposed fix, please test 2009-06-19 02:06:58 +00:00
Howard Chu
59a29c9801 ITS#6176 silently raise dncache to cachesize if smaller 2009-06-18 00:16:30 +00:00
Howard Chu
29be892cc1 Revert 1.274 2009-05-11 22:26:12 +00:00
Howard Chu
7ab16ae6c2 ITS#6103 send response on abandon 2009-05-11 04:30:36 +00:00
Howard Chu
6bd1861101 Fix c_leaves count 2009-05-08 06:37:05 +00:00
Howard Chu
1a8e3f9e3e More for prev commit 2009-05-08 04:48:03 +00:00
Howard Chu
7f9a60ae7a More for prev commit: delete bdb_cache_info(), must use cache_find_id().
Fixed cache.c_cursize counting.
2009-05-06 13:57:01 +00:00
Howard Chu
64dc274655 ITS#6095 experimental fix: avoid purging other cases of in-use EntryInfos,
avoid using purged EntryInfos that have not yet been fully unlinked.
2009-05-06 08:33:26 +00:00
Howard Chu
650ced22c8 More for ITS#5326 - don't free ora_e->e_name if same as o_req_dn 2009-05-05 21:54:01 +00:00
Howard Chu
a7fe6266d8 Don't do alock recovery in readonly mode since we didn't do BDB recovery 2009-05-03 00:49:35 +00:00
Howard Chu
87e2ad347b Fix typo in prev commit 2009-05-03 00:47:25 +00:00
Howard Chu
10baa9a60a ITS#6088 entryinfo cleanup 2009-05-03 00:30:20 +00:00
Howard Chu
6e27fa5076 ITS#6074 freeing already-freed EntryInfos... 2009-05-01 04:36:39 +00:00
Howard Chu
c7142fdec5 Don't underflow malloc'd memory in hdb_fix_dn() 2009-05-01 04:26:44 +00:00
Howard Chu
cfb12f536b ITS#6056 pagedresults stacked control is not overlay-friendly, add
slap_add_ctrls() function
2009-04-15 10:34:24 +00:00
Howard Chu
1d16ee5622 One more tweak for #5860 2009-03-19 06:06:37 +00:00
Howard Chu
65c24bdb1f More for #5860 - if the cache blew past the maxsize, bring it all the way
back down to size.
2009-03-18 18:18:40 +00:00
Howard Chu
0121f8c01d More for ITS#5860 2009-03-18 11:21:53 +00:00
Howard Chu
7f2f9c4b30 Cleanup prev commit 2009-03-18 09:44:20 +00:00
Howard Chu
cc950c70d1 More for ITS#5860, always check cache sizes 2009-03-18 08:52:38 +00:00
Howard Chu
ba75a865d7 ITS#6012 don't abort NULL txns (blind fix) 2009-03-17 18:09:40 +00:00
Howard Chu
df64b0573c More for prev commit - fill in other opattrs when creating stub 2009-03-07 02:46:10 +00:00
Howard Chu
b88e792a7f Revert ITS#3616 patch, obsoleted by ITS#4916 / ITS#6006 2009-03-07 02:28:01 +00:00
Howard Chu
89cfbe3b6e ITS#6006 dummy entry needs objectclass attr. (Previous fix to ITS#4961
was incomplete. This patch obsoletes the patch for ITS#3616.)
2009-03-07 02:23:20 +00:00
Howard Chu
e3e7a22b5d Must use txns everywhere, otherwise it will deadlock 2009-03-05 21:59:05 +00:00
Howard Chu
6d1aa51604 ITS#5860 - more for entry cache counts 2009-03-02 18:35:28 +00:00
Howard Chu
7198869342 More for prev - keep eifree at a reasonable number 2009-03-02 08:33:33 +00:00
Howard Chu
8ba8500ff1 ITS#5860 - free 10*minfree DN cache entries instead of just 1 per pass 2009-03-02 08:27:20 +00:00
Howard Chu
288e99cb08 ITS#5860 - NO_CACHE entries were not being counted when they were
converted to regular cached entries (so the entry cache grew beyond
the configured size)
2009-03-02 08:26:30 +00:00
Howard Chu
225aa9f526 More for prev 2009-03-02 07:57:18 +00:00
Howard Chu
03aa595908 ITS#5457 cleanup. If we ever go back to refcounting the entry cache,
this will matter.
2009-03-02 07:54:01 +00:00
Howard Chu
0693557161 ITS#5961 fix prev commit 2009-02-19 22:12:23 +00:00
Howard Chu
168fa346cc Cleanup prev commit 2009-02-18 00:17:59 +00:00
Howard Chu
6f4b2cc66e ITS#5956 only retry attaching to SHM once 2009-02-18 00:14:16 +00:00
Pierangelo Masarati
7cd382d931 build entry's pretty DN from parent's (ITS#5326) 2009-02-05 18:44:52 +00:00
Pierangelo Masarati
260fd357df fix structuralObjectClass modification (glue, ITS#5921; w/ relax, ITS#5792) 2009-02-04 22:36:49 +00:00
Howard Chu
a96538f36c ITS#5860 don't free entryinfo of entries that are validly in the cache 2009-01-26 20:59:10 +00:00
Howard Chu
09a369c4ea More for ITS#5860 2009-01-26 20:36:17 +00:00
Howard Chu
64d0cb9cf6 ITS#5859 fix IDL cache for hdb DB with empty suffix 2009-01-26 10:20:51 +00:00
Howard Chu
a59bdb2d5d ITS#5860 more for prev commit 2009-01-25 22:43:31 +00:00
Howard Chu
fe70cdf2ea ITS#5864 - require BDB >= 4.6 for trickle task 2009-01-24 03:43:08 +00:00
Howard Chu
417d105c29 ITS#5860 more ID_NOCACHE fallout 2009-01-24 00:55:44 +00:00
Kurt Zeilenga
4af9eb9715 Update copyright notices 2009-01-22 00:40:04 +00:00
Pierangelo Masarati
e0ad0fbd8d honor RFC4528 assertion control for LDAP add operations (ITS#5861) 2008-12-20 22:49:53 +00:00
Ralf Haferkamp
760660a4a2 Remove unneeded locking. Don't wait for memp_trickle to complete,
loosing an signal doesn't hurt in this case.
2008-11-28 16:09:40 +00:00
Howard Chu
f6ae9c9c9f Fix typo in prev commit 2008-11-22 22:41:11 +00:00
Howard Chu
1d746e552a Initialize bli_flag 2008-11-22 21:08:38 +00:00
Pierangelo Masarati
15236be495 fix previous commit 2008-11-22 18:35:19 +00:00
Pierangelo Masarati
ce045e153f make messages more esplicative; fix style 2008-11-22 17:53:14 +00:00
Pierangelo Masarati
1dd88a8b11 exactly one ID can match (ITS#5791; further fix previous commit) 2008-11-08 10:39:45 +00:00
Pierangelo Masarati
c41df6ed07 lookup entry id when equality on entryDN (ITS#5791; fixes previous commit) 2008-11-04 12:16:23 +00:00
Pierangelo Masarati
45aaaddb16 lookup entry id when equality on entryDN (proposed fix for ITS#5791; does not work for back-hdb, though) 2008-11-04 12:07:47 +00:00
Pierangelo Masarati
d4970fcb6f don't allow indexing of entryDN (ITS#5790) 2008-11-04 11:54:19 +00:00
Howard Chu
9d5de25b5b ITS#5745 long-lived TXNs must be closed before DBs 2008-11-03 13:00:00 +00:00
Howard Chu
f463be3b95 Add DBFLAG_CLEAN for a DB that was cleanly shut down; don't bother
scanning to verify contextCSN for clean shutdowns (ITS#5640)
2008-11-02 23:06:10 +00:00
Hallvard Furuseth
6fbd42a90a Warning cleanup: Signed meets unsigned:
Change insertion index bdb_attr_slot(,, unsigned *ins) to int *ins.  This
index is signed elsewhere, including the index returned by the same function.
2008-10-17 23:35:44 +00:00
Pierangelo Masarati
bbe6e77876 fix indentation 2008-10-17 00:03:53 +00:00
Howard Chu
72a9d87fec BDB_PAGESIZE not used any more, use BDB/FS default instead 2008-10-15 10:45:31 +00:00
Howard Chu
3be39979ea Add checksum keyword to enable DB checksum validation 2008-10-15 08:13:56 +00:00
Howard Chu
81ed60c056 Add dbpagesize keyword for configuring DB file page sizes 2008-10-15 07:41:57 +00:00
Hallvard Furuseth
6f39252bd0 Warning cleanup: signed meets unsigned. 2008-10-13 08:35:31 +00:00
Hallvard Furuseth
27d6497c33 Warning cleanup: Missing braces in initialization. 2008-10-13 05:44:55 +00:00
Howard Chu
faadcf3908 ITS#5730, patch for #5728 broke referrals 2008-10-08 21:33:45 +00:00
Howard Chu
16710f4ed4 Fix dn2idl when suffix = "" 2008-10-07 22:52:59 +00:00
Howard Chu
95d472aa98 ITS#5729 check for NULL bei_parent 2008-10-07 22:16:15 +00:00
Howard Chu
599d83c7cd ITS#5728 release entries before send_ldap_ber() 2008-10-07 00:29:54 +00:00
Howard Chu
aa2fecc1fc More deadlock propagation fixes 2008-10-01 21:28:03 +00:00
Howard Chu
babf624b23 Missed a deadlock check 2008-10-01 21:07:26 +00:00
Emmanuel Dreyfus
7a5b406cf1 Make sur attribute ACL are evaluated on ADD operations (see ITS#4556) 2008-09-29 22:08:29 +00:00
Pierangelo Masarati
71373cfdfe change olcDbMode syntax from integer to sirectory string, and allow any commonly accepted form to set its value, including -rwxrwxrwx (ITS#5713) 2008-09-27 14:04:57 +00:00
Howard Chu
9f808bd4b6 Propagate deadlock results for internal searches on write ops 2008-09-25 13:39:53 +00:00
Howard Chu
fda5733477 Wait for read locks in read txns 2008-09-25 13:17:17 +00:00
Ralf Haferkamp
4788d897d2 Use ConfigReply to return error messages to the client 2008-09-23 15:30:48 +00:00
Pierangelo Masarati
dc414747a7 silence warnings 2008-09-16 14:44:24 +00:00
Ralf Haferkamp
7bec8b6b8b stop and remove checkpoint task in _db_destroy (ITS#5698) 2008-09-12 09:53:40 +00:00
Pierangelo Masarati
549134d514 don't dereference NULL pointers (ITS#5676) 2008-09-02 20:58:34 +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
Pierangelo Masarati
c97ef0a708 don't return entry if requested attr is not present (ITS#5650) 2008-08-09 16:04:55 +00:00
Pierangelo Masarati
88bc524422 s/PATH_MAX/MAXPATHLEN/ (ITS#5531) 2008-05-26 20:53:16 +00:00