diff options
author | Keith Bostic <keith@wiredtiger.com> | 2012-08-01 09:16:18 +0000 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2012-08-01 09:16:18 +0000 |
commit | a088178db650ccde4c13500fc87c0d326712dec0 (patch) | |
tree | 001a3860b3dff5b7cbe9a9eb8d8471e7b4e00d56 /src/schema/schema_truncate.c | |
parent | 606e5e8fc2ffd8c08bfb1880e5417cea1f185f81 (diff) | |
download | mongo-a088178db650ccde4c13500fc87c0d326712dec0.tar.gz |
schema/schema_truncate.c 85 Warning 550: Symbol 'tret' (line 44) not
accessed
Diffstat (limited to 'src/schema/schema_truncate.c')
-rw-r--r-- | src/schema/schema_truncate.c | 6 |
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( |