summaryrefslogtreecommitdiff
path: root/src/schema/schema_create.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/schema/schema_create.c')
-rw-r--r--src/schema/schema_create.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/schema/schema_create.c b/src/schema/schema_create.c
index a1f5ddcc2e7..4624d82d727 100644
--- a/src/schema/schema_create.c
+++ b/src/schema/schema_create.c
@@ -373,10 +373,6 @@ __create_index(WT_SESSION_IMPL *session,
if (__wt_config_getones_none(
session, config, "extractor", &cval) == 0 && cval.len != 0) {
have_extractor = 1;
-
- /* Confirm the extractor exists. */
- WT_ERR(__wt_extractor_confchk(session, &cval));
-
/* Custom extractors must supply a key format. */
if ((ret = __wt_config_getones(
session, config, "key_format", &kval)) != 0)
@@ -481,6 +477,10 @@ __create_index(WT_SESSION_IMPL *session,
goto err;
}
+ /* Make sure that the configuration is valid. */
+ WT_ERR(__wt_schema_open_index(
+ session, table, idxname, strlen(idxname), NULL));
+
err: __wt_free(session, idxconf);
__wt_free(session, sourceconf);
__wt_buf_free(session, &confbuf);