From 7a148b9f19d57e4d6638304f834d7cc5933cce64 Mon Sep 17 00:00:00 2001 From: Gregory Burd Date: Thu, 18 Apr 2013 11:59:10 -0400 Subject: [PATCH] get, put, delete don't use sessions, only cursors so don't fetch the shared session. --- c_src/wterl.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/c_src/wterl.c b/c_src/wterl.c index cdcd5d1..8aa133c 100644 --- a/c_src/wterl.c +++ b/c_src/wterl.c @@ -1039,13 +1039,6 @@ ASYNC_NIF_DECL( return; } - WT_SESSION *session = NULL; - int rc = __session_for(args->conn_handle, worker_id, &session); - if (rc != 0) { - ASYNC_NIF_REPLY(__strerror_term(env, rc)); - return; - } - WT_CURSOR *cursor = NULL; rc = __retain_cursor(args->conn_handle, worker_id, args->uri, &cursor); if (rc != 0) { @@ -1101,13 +1094,6 @@ ASYNC_NIF_DECL( return; } - WT_SESSION *session = NULL; - int rc = __session_for(args->conn_handle, worker_id, &session); - if (rc != 0) { - ASYNC_NIF_REPLY(__strerror_term(env, rc)); - return; - } - WT_CURSOR *cursor = NULL; rc = __retain_cursor(args->conn_handle, worker_id, args->uri, &cursor); if (rc != 0) { @@ -1186,13 +1172,6 @@ ASYNC_NIF_DECL( return; } - WT_SESSION *session = NULL; - int rc = __session_for(args->conn_handle, worker_id, &session); - if (rc != 0) { - ASYNC_NIF_REPLY(__strerror_term(env, rc)); - return; - } - WT_CURSOR *cursor = NULL; rc = __retain_cursor(args->conn_handle, worker_id, args->uri, &cursor); if (rc != 0) {