diff options
author | Michael Cahill <michael.cahill@mongodb.com> | 2016-02-03 17:57:23 +1100 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2016-02-03 17:57:23 +1100 |
commit | 202429294b7d0883c4847f2bcb43808079503a77 (patch) | |
tree | 773643d871a52ba6694359d9cc75f229efde0c15 /src/schema | |
parent | 4892c0c2469d7689da4ab337f3393b0a7f9f1dda (diff) | |
download | mongo-202429294b7d0883c4847f2bcb43808079503a77.tar.gz |
SERVER-22437 Remove dead code from WT-2295.
Diffstat (limited to 'src/schema')
-rw-r--r-- | src/schema/schema_create.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/schema/schema_create.c b/src/schema/schema_create.c index 8cdcbbcad54..25bbd496798 100644 --- a/src/schema/schema_create.c +++ b/src/schema/schema_create.c @@ -550,8 +550,9 @@ __create_index(WT_SESSION_IMPL *session, /* Make sure that the configuration is valid. */ WT_ERR(__wt_schema_open_index( session, table, idxname, strlen(idxname), &idx)); - if (!exists) - WT_ERR(__fill_index(session, table, idx)); + + /* If there is data in the table, fill the index. */ + WT_ERR(__fill_index(session, table, idx)); err: __wt_free(session, idxconf); __wt_free(session, origconf); |