summaryrefslogtreecommitdiff
path: root/src/schema/schema_truncate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/schema/schema_truncate.c')
-rw-r--r--src/schema/schema_truncate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/schema/schema_truncate.c b/src/schema/schema_truncate.c
index 016ebee3833..c5492ca69cd 100644
--- a/src/schema/schema_truncate.c
+++ b/src/schema/schema_truncate.c
@@ -41,7 +41,7 @@ __truncate_table(WT_SESSION_IMPL *session, const char *name)
WT_DECL_ITEM(namebuf);
WT_DECL_RET;
WT_TABLE *table;
- int i, tret;
+ int i;
WT_RET(__wt_schema_get_table(session, name, strlen(name), 0, &table));
WT_RET(__wt_scr_alloc(session, 0, &namebuf));
@@ -52,7 +52,7 @@ __truncate_table(WT_SESSION_IMPL *session, const char *name)
* Get an exclusive lock on the handle: it will be released by
* __wt_conn_btree_close_all.
*/
- WT_ERR(tret = __wt_session_get_btree(session,
+ WT_ERR(__wt_session_get_btree(session,
table->cgroups[i]->source, NULL, NULL, WT_BTREE_EXCLUSIVE));
btree = session->btree;
WT_ERR(__wt_buf_set(
@@ -67,7 +67,7 @@ __truncate_table(WT_SESSION_IMPL *session, const char *name)
* Get an exclusive lock on the handle: it will be released by
* __wt_conn_btree_close_all.
*/
- WT_ERR(tret = __wt_session_get_btree(session,
+ WT_ERR(__wt_session_get_btree(session,
table->indices[i]->source, NULL, NULL, WT_BTREE_EXCLUSIVE));
btree = session->btree;
WT_ERR(__wt_buf_set(