diff options
author | David Hows <david.hows@mongodb.com> | 2017-01-06 12:12:50 +1100 |
---|---|---|
committer | David Hows <david.hows@mongodb.com> | 2017-01-06 12:12:50 +1100 |
commit | d48181f6f4db08761ed7b80b0332908b272ad0d0 (patch) | |
tree | 38929fdcc5415ee7b001b6f1a406bd5bd777b737 /src/cursor/cur_table.c | |
parent | 040e3d6f764c0fb626cb47fede54469f57d0c6e0 (diff) | |
parent | 8d2324943364286056ae399043f70b8a937de312 (diff) | |
download | mongodb-3.2.12.tar.gz |
Merge branch 'mongodb-3.6' into mongodb-3.2mongodb-3.2.12
Diffstat (limited to 'src/cursor/cur_table.c')
-rw-r--r-- | src/cursor/cur_table.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/cursor/cur_table.c b/src/cursor/cur_table.c index 502d93639a8..fae7667e44f 100644 --- a/src/cursor/cur_table.c +++ b/src/cursor/cur_table.c @@ -763,16 +763,13 @@ err: API_END_RET(session, ret); static int __curtable_complete(WT_SESSION_IMPL *session, WT_TABLE *table) { - WT_DECL_RET; bool complete; if (table->cg_complete) return (0); /* If the table is incomplete, wait on the table lock and recheck. */ - complete = false; - WT_WITH_TABLE_LOCK(session, ret, complete = table->cg_complete); - WT_RET(ret); + WT_WITH_TABLE_LOCK(session, complete = table->cg_complete); if (!complete) WT_RET_MSG(session, EINVAL, "'%s' not available until all column groups are created", @@ -927,7 +924,7 @@ __wt_curtable_open(WT_SESSION_IMPL *session, WT_ERR(__wt_scr_alloc(session, 0, &tmp)); if (columns != NULL) { WT_ERR(__wt_struct_reformat(session, table, - columns, strlen(columns), NULL, true, tmp)); + columns, strlen(columns), NULL, false, tmp)); WT_ERR(__wt_strndup( session, tmp->data, tmp->size, &cursor->value_format)); |