Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
8bbd101e
Commit
8bbd101e
authored
Apr 05, 2009
by
Howard Chu
Browse files
ITS#6021, sync with HEAD (not yet fixed)
parent
a05913bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/pcache.c
View file @
8bbd101e
...
...
@@ -1175,6 +1175,8 @@ free_query (CachedQuery* qc)
{
free
(
qc
->
q_uuid
.
bv_val
);
filter_free
(
qc
->
filter
);
ldap_pvt_thread_rdwr_destroy
(
&
qc
->
rwlock
);
memset
(
qc
,
0
,
sizeof
(
*
qc
));
free
(
qc
);
}
...
...
@@ -1264,6 +1266,7 @@ add_query(
new_cached_query
=
find_filter
(
op
,
qbase
->
scopes
[
query
->
scope
],
query
->
filter
,
first
);
filter_free
(
query
->
filter
);
query
->
filter
=
NULL
;
}
Debug
(
pcache_debug
,
"TEMPLATE %p QUERIES++ %d
\n
"
,
(
void
*
)
templ
,
templ
->
no_of_queries
,
0
);
...
...
@@ -2750,7 +2753,8 @@ pc_cfadd( Operation *op, SlapReply *rs, Entry *p, ConfigArgs *ca )
/* FIXME: should not hardcode "olcDatabase" here */
bv
.
bv_len
=
snprintf
(
ca
->
cr_msg
,
sizeof
(
ca
->
cr_msg
),
"olcDatabase=%s"
,
cm
->
db
.
bd_info
->
bi_type
);
"olcDatabase="
SLAP_X_ORDERED_FMT
"%s"
,
0
,
cm
->
db
.
bd_info
->
bi_type
);
if
(
bv
.
bv_len
>=
sizeof
(
ca
->
cr_msg
)
)
{
return
-
1
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment