diff options
author | Keith Bostic <keith@wiredtiger.com> | 2015-10-05 09:51:36 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2015-10-05 09:51:36 -0400 |
commit | 4e7974c2c4fa4a6ec06ae21efea477635bfc14d9 (patch) | |
tree | 60b876441f3dfaaab93e605ab538dc604f51a4e5 | |
parent | cc42bda7c56e40d743eeaa4240665844293778b8 (diff) | |
download | mongo-4e7974c2c4fa4a6ec06ae21efea477635bfc14d9.tar.gz |
We lost a return in 67fd264, add it back in so we don't check the config
twice on success in one path.
-rw-r--r-- | src/config/config.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/config/config.c b/src/config/config.c index 27de6264a28..505b843aa86 100644 --- a/src/config/config.c +++ b/src/config/config.c @@ -745,11 +745,16 @@ __wt_config_gets_def(WT_SESSION_IMPL *session, *value = false_value; value->val = def; + if (cfg == NULL || cfg[0] == NULL || cfg[1] == NULL) return (0); - else if (cfg[2] == NULL) + + if (cfg[2] == NULL) { WT_RET_NOTFOUND_OK( __wt_config_getones(session, cfg[1], key, value)); + return (0); + } + return (__wt_config_gets(session, cfg, key, value)); } |