diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2015-01-14 02:28:10 +1100 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2015-01-14 02:28:10 +1100 |
commit | 812be6c438ef11d2edde8211370601e350963a43 (patch) | |
tree | 7f589af6462ce97832aa4dd03bf74e61f3760f16 /examples | |
parent | 56865ca8ec3cb43e15c05cea9b7ef704302fe694 (diff) | |
download | mongo-812be6c438ef11d2edde8211370601e350963a43.tar.gz |
Rename WT_CURSOR compare_equal to be equals.
While here, add a generic cursor equals stub in curstd, rather than
redirecting via cursor function pointer lists.
Implement the Java API wrapper.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/c/ex_all.c | 2 | ||||
-rw-r--r-- | examples/java/com/wiredtiger/examples/ex_all.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/c/ex_all.c b/examples/c/ex_all.c index 6fe5296ea58..532a4bca66c 100644 --- a/examples/c/ex_all.c +++ b/examples/c/ex_all.c @@ -245,7 +245,7 @@ cursor_ops(WT_SESSION *session) WT_CURSOR *other = NULL; /*! [Cursor equality] */ int equal; - ret = cursor->compare_equal(cursor, other, &equal); + ret = cursor->equals(cursor, other, &equal); if (equal == 0) { /* Cursors reference the same key */ } else { diff --git a/examples/java/com/wiredtiger/examples/ex_all.java b/examples/java/com/wiredtiger/examples/ex_all.java index 5b1b0f58efa..2bc412307f1 100644 --- a/examples/java/com/wiredtiger/examples/ex_all.java +++ b/examples/java/com/wiredtiger/examples/ex_all.java @@ -218,7 +218,7 @@ public static int cursor_ops(Session session) Cursor other = null; /*! [Cursor equality] */ int equal; - equal = cursor.compare_equal(other); + equal = cursor.equals(other); if (equal == 0) { /* Cursors reference the same key */ } else { |