summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2015-01-13 11:48:49 -0500
committerKeith Bostic <keith@wiredtiger.com>2015-01-13 11:48:49 -0500
commit73823724761dc3afcde417dfac77aee94533cfa7 (patch)
tree09406c699d4d46a83474b4c4b68465e816beeaac /src
parenta0b004058d3f4f0e64a179f2023f8e5bac420c46 (diff)
downloadmongo-73823724761dc3afcde417dfac77aee94533cfa7.tar.gz
Add a comment.
Diffstat (limited to 'src')
-rw-r--r--src/btree/bt_cursor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/btree/bt_cursor.c b/src/btree/bt_cursor.c
index 48199f6c978..67c8d3fcbe1 100644
--- a/src/btree/bt_cursor.c
+++ b/src/btree/bt_cursor.c
@@ -893,7 +893,8 @@ __wt_btcur_equals(
* The reason for a compare-equal method is because we can avoid doing
* a full key comparison in some cases. If both cursors point into the
* tree, take the fast path, otherwise fall back to the slower compare
- * method.
+ * method; in both cases, return 0 if the cursors are equal, 1 if they
+ * are not.
*/
if (F_ISSET(a, WT_CURSTD_KEY_INT) && F_ISSET(b, WT_CURSTD_KEY_INT))
*cmpp = !__cursor_equals(a_arg, b_arg);