[Groonga-commit] groonga/grnxx at 785775b [master] Fix a bug not updating indexes in clear_references(). (#71)

Back to archive index

susumu.yata null+****@clear*****
Fri Oct 3 10:45:39 JST 2014


susumu.yata	2014-10-03 10:45:39 +0900 (Fri, 03 Oct 2014)

  New Revision: 785775b7a436c94c14b22cfe3d224f18a8d4a5f4
  https://github.com/groonga/grnxx/commit/785775b7a436c94c14b22cfe3d224f18a8d4a5f4

  Message:
    Fix a bug not updating indexes in clear_references(). (#71)

  Modified files:
    lib/grnxx/column.cpp

  Modified: lib/grnxx/column.cpp (+1 -1)
===================================================================
--- lib/grnxx/column.cpp    2014-10-02 18:31:09 +0900 (e1bbc84)
+++ lib/grnxx/column.cpp    2014-10-03 10:45:39 +0900 (f9e2edd)
@@ -576,7 +576,7 @@ void ColumnImpl<Int>::clear_references(Int row_id) {
         return;
       }
       for (Int i = 0; i < records.size(); ++i) {
-        values_[records.get_row_id(i)] = NULL_ROW_ID;
+        set(nullptr, row_id, grnxx::NULL_ROW_ID);
       }
       records.clear();
     }
-------------- next part --------------
HTML����������������������������...
다운로드 



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