summaryrefslogtreecommitdiff
path: root/src/schema
diff options
context:
space:
mode:
authorAlex Gorrod <alexg@wiredtiger.com>2014-11-18 22:44:44 +1100
committerAlex Gorrod <alexg@wiredtiger.com>2014-11-18 22:44:44 +1100
commitcd14f03c94a75417d39f0043986b1481c8fcb212 (patch)
tree04ffcbe73c69c38404619b194ab6bb29777da7d3 /src/schema
parent09ce8753f18171ac4ad6a630551fdcf8e237c35a (diff)
downloadmongo-cd14f03c94a75417d39f0043986b1481c8fcb212.tar.gz
Fixup immutable indexes per review comments.
Diffstat (limited to 'src/schema')
-rw-r--r--src/schema/schema_open.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/schema/schema_open.c b/src/schema/schema_open.c
index d6fe5468780..b4b03270a23 100644
--- a/src/schema/schema_open.c
+++ b/src/schema/schema_open.c
@@ -141,9 +141,7 @@ __open_index(WT_SESSION_IMPL *session, WT_TABLE *table, WT_INDEX *idx)
WT_ERR(__wt_strndup(session, buf->data, buf->size, &idx->source));
WT_ERR(__wt_config_getones(session, idx->config, "immutable", &cval));
- if (cval.val == 0)
- F_CLR(idx, WT_INDEX_IMMUTABLE);
- else
+ if (cval.val)
F_SET(idx, WT_INDEX_IMMUTABLE);
WT_ERR(__wt_extractor_config(