[Groonga-mysql-commit] mroonga/mroonga at bb450ea [master] Fix wrong free function

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Oct 30 08:21:26 JST 2013


Kouhei Sutou	2013-10-30 08:21:26 +0900 (Wed, 30 Oct 2013)

  New Revision: bb450ea2868c48cf2ba10ef448e66fca19bb022c
  https://github.com/mroonga/mroonga/commit/bb450ea2868c48cf2ba10ef448e66fca19bb022c

  Message:
    Fix wrong free function
    
    grn_obj_unlink() is correct free function for temporary
    grn_obj. grn_obj_remove() is a function to remove persistent objects
    such as tables and columns from database.

  Modified files:
    lib/mrn_multiple_column_key_codec.cpp

  Modified: lib/mrn_multiple_column_key_codec.cpp (+1 -1)
===================================================================
--- lib/mrn_multiple_column_key_codec.cpp    2013-10-30 05:51:39 +0900 (27f68d2)
+++ lib/mrn_multiple_column_key_codec.cpp    2013-10-30 08:21:26 +0900 (62d1697)
@@ -537,7 +537,7 @@ namespace mrn {
         new_blob_data_length = blob_data_length;
       }
       memcpy(grn_key + *data_size, &new_blob_data_length, HA_KEY_BLOB_LENGTH);
-      grn_obj_remove(ctx_, grn_string);
+      grn_obj_unlink(ctx_, grn_string);
     } else {
       memcpy(grn_key + *data_size, mysql_key, HA_KEY_BLOB_LENGTH);
       memcpy(grn_key, mysql_key + HA_KEY_BLOB_LENGTH, *data_size);
-------------- next part --------------
HTML����������������������������...
下载 



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