diff options
Diffstat (limited to 'src/third_party/wiredtiger/src/schema/schema_open.c')
-rw-r--r-- | src/third_party/wiredtiger/src/schema/schema_open.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/schema/schema_open.c b/src/third_party/wiredtiger/src/schema/schema_open.c index 81447b173ae..d613ced00aa 100644 --- a/src/third_party/wiredtiger/src/schema/schema_open.c +++ b/src/third_party/wiredtiger/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. */ |