From b17ae928762fbd3416e53959e5b53ebbe0c3f5c8 Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Tue, 16 Sep 2014 18:25:12 -0400 Subject: __wt_cursor_init has a long list of tests for cursor methods that we don't need, except for get/set-key and get/set-value, almost all of the methods are explicitly set, it's simpler to set them all then to leave that code in place. Two real changes besides the semantic sugar: change the config cursor reset method from not-supported to a no-op, that's the default, delete the __cursor_search function (the default search method), no code needed it. --- src/cursor/cur_dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cursor/cur_dump.c') diff --git a/src/cursor/cur_dump.c b/src/cursor/cur_dump.c index 266ef0d7207..28dffd8aff2 100644 --- a/src/cursor/cur_dump.c +++ b/src/cursor/cur_dump.c @@ -349,7 +349,7 @@ __wt_curdump_create(WT_CURSOR *child, WT_CURSOR *owner, WT_CURSOR **cursorp) __curdump_get_value, /* get-value */ __curdump_set_key, /* set-key */ __curdump_set_value, /* set-value */ - NULL, /* compare */ + __wt_cursor_notsup, /* compare */ __curdump_next, /* next */ __curdump_prev, /* prev */ __curdump_reset, /* reset */ -- cgit v1.2.1