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
a17f2346
Commit
a17f2346
authored
Sep 03, 2008
by
Quanah Gibson-Mount
Browse files
ITS#5607
parent
96f8ea58
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
a17f2346
...
...
@@ -3,6 +3,7 @@ OpenLDAP 2.4 Change Log
OpenLDAP 2.4.12 Engineering
Fixed slapd socket closing on Windows (ITS#5606)
Fixed slapd-meta quarantine behavior (ITS#5592)
Fixed slapd-sql freeing of connection (ITS#5607)
Fixed slapo-constraint string termination (ITS#5609)
Fixed slapo-rwm callback cleanup (ITS#5601)
Build Environment
...
...
servers/slapd/back-sql/sql-wrap.c
View file @
a17f2346
...
...
@@ -462,28 +462,31 @@ backsql_open_db_handle(
return
LDAP_SUCCESS
;
}
static
void
*
backsql_db_conn_dummy
;
static
void
backsql_db_conn_keyfree
(
void
*
key
,
void
*
data
)
{
(
void
)
backsql_close_db_handle
(
(
SQLHDBC
)
data
);
}
int
backsql_free_db_conn
(
Operation
*
op
,
SQLHDBC
dbh
)
{
Debug
(
LDAP_DEBUG_TRACE
,
"==>backsql_free_db_conn()
\n
"
,
0
,
0
,
0
);
(
void
)
backsql_close_db_handle
(
dbh
);
ldap_pvt_thread_pool_setkey
(
op
->
o_threadctx
,
&
backsql_db_conn_dummy
,
(
void
*
)
SQL_NULL_HDBC
,
backsql_db_conn_keyfree
,
NULL
,
NULL
);
Debug
(
LDAP_DEBUG_TRACE
,
"<==backsql_free_db_conn()
\n
"
,
0
,
0
,
0
);
return
LDAP_SUCCESS
;
}
static
void
*
backsql_db_conn_dummy
;
static
void
backsql_db_conn_keyfree
(
void
*
key
,
void
*
data
)
{
backsql_close_db_handle
(
(
SQLHDBC
)
data
);
}
int
backsql_get_db_conn
(
Operation
*
op
,
SQLHDBC
*
dbhp
)
{
...
...
@@ -514,9 +517,8 @@ backsql_get_db_conn( Operation *op, SQLHDBC *dbhp )
}
if
(
op
->
o_threadctx
)
{
void
*
data
=
NULL
;
void
*
data
=
(
void
*
)
dbh
;
data
=
(
void
*
)
dbh
;
ldap_pvt_thread_pool_setkey
(
op
->
o_threadctx
,
&
backsql_db_conn_dummy
,
data
,
backsql_db_conn_keyfree
,
NULL
,
NULL
);
...
...
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