summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-12-22 18:03:58 -0500
committerKeith Bostic <keith@wiredtiger.com>2014-12-22 18:03:58 -0500
commit71355ac442db3e001c120fcfc398de71d34075e3 (patch)
treea4f045a4c84ca6d73e24374b2e5b45c0a596ebf9
parent24d46594c37bc8092fc66299102413ebefef3e8e (diff)
downloadmongo-71355ac442db3e001c120fcfc398de71d34075e3.tar.gz
Typo, the test for a configuration string is (cval.len != 0).
-rw-r--r--src/cursor/cur_std.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cursor/cur_std.c b/src/cursor/cur_std.c
index 9a36b628835..f0eb5a4ec73 100644
--- a/src/cursor/cur_std.c
+++ b/src/cursor/cur_std.c
@@ -623,7 +623,7 @@ __wt_cursor_init(WT_CURSOR *cursor,
* of two configuration string checks.
*/
WT_RET(__wt_config_gets_def(session, cfg, "checkpoint", 0, &cval));
- if (cval.len == 1) {
+ if (cval.len != 0) {
cursor->insert = cursor->insert_orig = __wt_cursor_notsup;
cursor->update = cursor->update_orig = __wt_cursor_notsup;
cursor->remove = cursor->remove_orig = __wt_cursor_notsup;