diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2015-01-17 05:48:03 +1100 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2015-01-17 05:48:03 +1100 |
commit | 76addf73581c53f24462ab5fd724048aec36eaf3 (patch) | |
tree | 5dee076df3ad7360a111c193c48d3675d7dc9e50 /examples/c | |
parent | ae3bd66c8cd2ffa1f0630b035d364a895a4920be (diff) | |
download | mongo-76addf73581c53f24462ab5fd724048aec36eaf3.tar.gz |
Have WT_CURSOR::equals return 1 when cursors are equal, 0 when not.
Diffstat (limited to 'examples/c')
-rw-r--r-- | examples/c/ex_all.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/c/ex_all.c b/examples/c/ex_all.c index 532a4bca66c..108cca583a8 100644 --- a/examples/c/ex_all.c +++ b/examples/c/ex_all.c @@ -246,7 +246,7 @@ cursor_ops(WT_SESSION *session) /*! [Cursor equality] */ int equal; ret = cursor->equals(cursor, other, &equal); - if (equal == 0) { + if (equal) { /* Cursors reference the same key */ } else { /* Cursors don't reference the same key */ |