Skip to content

Commit

Permalink
Eliminate assumption that connections created with the OCISessionGet(…
Browse files Browse the repository at this point in the history
…) API are

all created using a pool; the use of a connection class or sharding columns all
require the OCISessionGet() API as well.
  • Loading branch information
anthony-tuininga committed Aug 13, 2019
1 parent f95846b commit f945355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dpiConn.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ static int dpiConn__close(dpiConn *conn, uint32_t mode, const char *tag,

// update last time used (if the session isn't going to be dropped)
// clear last time used (if the session is going to be dropped)
// do nothing, however, if pool is being closed
if (conn->sessionHandle && conn->pool->handle) {
// do nothing, however, if not using a pool or the pool is being closed
if (conn->sessionHandle && conn->pool && conn->pool->handle) {

// get the pointer from the context associated with the session
lastTimeUsed = NULL;
Expand Down

0 comments on commit f945355

Please sign in to comment.