diff options
author | Michael Cahill <michael.cahill@mongodb.com> | 2015-09-22 09:36:00 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2015-09-22 09:36:00 +1000 |
commit | 5c88b7b1f81241fedd3ebb63ca399a522fca287e (patch) | |
tree | d9b4c8278b6e8577f3563cb8d7860f75ad89d6d4 /src/cursor/cur_table.c | |
parent | 0e37f582b94bcee469a9645bfc4eb9d8c0ab869b (diff) | |
download | mongo-5c88b7b1f81241fedd3ebb63ca399a522fca287e.tar.gz |
WT-2122 Convert more expressions to use bool. In particular, make F_ISSET a boolean expression and add F_MASK for applying a mask to flags.
Diffstat (limited to 'src/cursor/cur_table.c')
-rw-r--r-- | src/cursor/cur_table.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cursor/cur_table.c b/src/cursor/cur_table.c index a046b2b1ed9..edf9543cee1 100644 --- a/src/cursor/cur_table.c +++ b/src/cursor/cur_table.c @@ -75,7 +75,7 @@ __curextract_insert(WT_CURSOR *cursor) { * Apply an operation to all indices of a table. */ static int -__apply_idx(WT_CURSOR_TABLE *ctable, size_t func_off, int skip_immutable) { +__apply_idx(WT_CURSOR_TABLE *ctable, size_t func_off, bool skip_immutable) { WT_CURSOR_STATIC_INIT(iface, __wt_cursor_get_key, /* get-key */ __wt_cursor_get_value, /* get-value */ @@ -504,7 +504,7 @@ __curtable_insert(WT_CURSOR *cursor) cp = ctable->cg_cursors; primary = *cp++; - flag_orig = F_ISSET(primary, WT_CURSTD_OVERWRITE); + flag_orig = F_MASK(primary, WT_CURSTD_OVERWRITE); if (ctable->table->nindices > 0) F_CLR(primary, WT_CURSTD_OVERWRITE); ret = primary->insert(primary); |