Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Robert Dubner
OpenLDAP
Commits
6c01508f
Commit
6c01508f
authored
Apr 13, 2004
by
Pierangelo Masarati
Browse files
cleanup needed for tool mode compatibility (may need work)
parent
c846d75b
Changes
3
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-ldbm/cache.c
View file @
6c01508f
...
...
@@ -99,6 +99,10 @@ cache_return_entry_rw( Cache *cache, Entry *e, int rw )
ID
id
;
int
refcnt
,
freeit
=
1
;
if
(
slapMode
!=
SLAP_SERVER_MODE
)
{
return
;
}
/* set cache mutex */
ldap_pvt_thread_mutex_lock
(
&
cache
->
c_mutex
);
...
...
servers/slapd/back-ldbm/entry.c
View file @
6c01508f
...
...
@@ -52,6 +52,10 @@ ldbm_back_entry_release_rw(
#endif
}
else
{
if
(
e
->
e_private
)
{
free
(
e
->
e_private
);
e
->
e_private
=
NULL
;
}
entry_free
(
e
);
}
...
...
servers/slapd/back-ldbm/id2entry.c
View file @
6c01508f
...
...
@@ -259,7 +259,9 @@ id2entry_rw( Backend *be, ID id, int rw )
e
->
e_id
=
id
;
if
(
cache_add_entry_rw
(
&
li
->
li_cache
,
e
,
rw
)
!=
0
)
{
if
(
slapMode
==
SLAP_SERVER_MODE
&&
cache_add_entry_rw
(
&
li
->
li_cache
,
e
,
rw
)
!=
0
)
{
entry_free
(
e
);
/* XXX this is a kludge.
...
...
@@ -300,9 +302,11 @@ id2entry_rw( Backend *be, ID id, int rw )
rw
?
"w"
:
"r"
,
id
,
(
unsigned
long
)
e
);
#endif
/* marks the entry as committed, so it will get added to the cache
* when the lock is released */
cache_entry_commit
(
e
);
if
(
slapMode
==
SLAP_SERVER_MODE
)
{
/* marks the entry as committed, so it will get added to the cache
* when the lock is released */
cache_entry_commit
(
e
);
}
return
(
e
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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