summaryrefslogtreecommitdiff
path: root/src/schema/schema_open.c
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2015-01-14 09:09:33 +1100
committerMichael Cahill <michael.cahill@wiredtiger.com>2015-01-14 09:09:33 +1100
commitd56476de123cd7c5bfced2ee50072dd5156a7ad8 (patch)
tree849962ffefb1976e45168d9b3eeaad4f21fdc600 /src/schema/schema_open.c
parenta02d92f9a546d6c326958cd24c2a0276e9bf72ee (diff)
parentcc5b59d0397b8535c2c5c528ca68c626617b4fd7 (diff)
downloadmongo-d56476de123cd7c5bfced2ee50072dd5156a7ad8.tar.gz
Merge branch 'develop' into mongodb-2.8mongodb-2.8-rc5
Diffstat (limited to 'src/schema/schema_open.c')
-rw-r--r--src/schema/schema_open.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/schema/schema_open.c b/src/schema/schema_open.c
index 81447b173ae..d613ced00aa 100644
--- a/src/schema/schema_open.c
+++ b/src/schema/schema_open.c
@@ -327,6 +327,13 @@ __wt_schema_open_index(WT_SESSION_IMPL *session,
table->indices[i] = idx;
idx = NULL;
+
+ /*
+ * If the slot is bigger than anything else we've seen,
+ * bump the number of indices.
+ */
+ if (i >= table->nindices)
+ table->nindices = i + 1;
}
/* If we were looking for a single index, we're done. */