[Groonga-commit] groonga/grnxx at 417018e [master] Fix a bug of DoubleArrayCompletionCursor.

Back to archive index

susumu.yata null+****@clear*****
Wed Apr 24 09:56:35 JST 2013


susumu.yata	2013-04-24 09:56:35 +0900 (Wed, 24 Apr 2013)

  New Revision: 417018e9060f3046ed71c108187d5c5ee56e16ca
  https://github.com/groonga/grnxx/commit/417018e9060f3046ed71c108187d5c5ee56e16ca

  Message:
    Fix a bug of DoubleArrayCompletionCursor.

  Modified files:
    lib/grnxx/alpha/map/double_array-slice.cpp

  Modified: lib/grnxx/alpha/map/double_array-slice.cpp (+2 -2)
===================================================================
--- lib/grnxx/alpha/map/double_array-slice.cpp    2013-04-24 09:37:09 +0900 (89a73b1)
+++ lib/grnxx/alpha/map/double_array-slice.cpp    2013-04-24 09:56:35 +0900 (c403168)
@@ -1029,8 +1029,8 @@ DoubleArrayCompletionCursor<Slice>::DoubleArrayCompletionCursor(
     const MapCursorOptions &options)
   : MapCursor<Slice>(), double_array_(double_array), cur_(), count_(0),
     query_(query), min_size_(), options_(options), node_ids_(), keys_() {
-  if ((~options_.flags & MAP_CURSOR_ORDER_BY_ID) ||
-      (options_.flags & MAP_CURSOR_ORDER_BY_KEY)) {
+  if ((options_.flags & MAP_CURSOR_ORDER_BY_ID) &&
+      (~options_.flags & MAP_CURSOR_ORDER_BY_KEY)) {
     init_order_by_id();
   } else {
     init_order_by_key();
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index