diff options
Diffstat (limited to 'src/config/config_def.c')
-rw-r--r-- | src/config/config_def.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/config/config_def.c b/src/config/config_def.c index 43d87c518e4..19d2f0a49a1 100644 --- a/src/config/config_def.c +++ b/src/config/config_def.c @@ -793,3 +793,18 @@ __wt_conn_config_discard(WT_SESSION_IMPL *session) __wt_free(session, conn->config_entries); } + +/* + * __wt_conn_config_match -- + * Return the static configuration entry for a method. + */ +const WT_CONFIG_ENTRY * +__wt_conn_config_match(const char *method) +{ + const WT_CONFIG_ENTRY *ep; + + for (ep = config_entries; ep->method != NULL; ++ep) + if (strcmp(method, ep->method) == 0) + return (ep); + return (NULL); +} |