summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-06-04 20:02:15 -0400
committerKeith Bostic <keith@wiredtiger.com>2014-06-04 20:02:15 -0400
commitfdc63e5ea04cee7c7243bc3e72e2aee7e11fe4c3 (patch)
treef1ef399f61ab28c69e550624fd2f162074e5128b /ext
parent4c330d705affb6dfcf37e338fcc1fdca1d46ea6b (diff)
downloadmongo-fdc63e5ea04cee7c7243bc3e72e2aee7e11fe4c3.tar.gz
Minor code shuffle to make the flow a little more obvious.
Diffstat (limited to 'ext')
-rw-r--r--ext/collators/reverse/reverse_collator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/collators/reverse/reverse_collator.c b/ext/collators/reverse/reverse_collator.c
index def884cc8c5..61d51199d7b 100644
--- a/ext/collators/reverse/reverse_collator.c
+++ b/ext/collators/reverse/reverse_collator.c
@@ -49,10 +49,10 @@ collate_reverse(WT_COLLATOR *collator,
*ret = 1;
else if (cmp > 0)
*ret = -1;
+ else if (k1->size < k2->size)
+ *ret = 1;
else if (k1->size > k2->size)
*ret = -1;
- else if (k2->size > k1->size)
- *ret = 1;
else
*ret = 0;
return (0);