[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] [storage] remove needless codes. refs #1212

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:35:47 JST 2012


Kouhei Sutou	2012-01-23 15:41:43 +0900 (Mon, 23 Jan 2012)

  New Revision: 1b8ca1dfabedf3c765a94df7daf47f699923994b
  https://github.com/mroonga/mroonga/commit/1b8ca1dfabedf3c765a94df7daf47f699923994b

  Log:
    [storage] remove needless codes. refs #1212

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+3 -8)
===================================================================
--- ha_mroonga.cc    2012-01-22 21:12:13 +0900 (12c60fd)
+++ ha_mroonga.cc    2012-01-23 15:41:43 +0900 (1709db4)
@@ -7237,19 +7237,14 @@ void ha_mroonga::store_to_fields_from_index(uchar *buf)
     dbug_tmp_restore_column_map(table->write_set, tmp_map);
 #endif
   } else {
-    grn_obj grn_buf;
     uchar enc_buf[MAX_KEY_LENGTH];
-    GRN_TEXT_INIT(&grn_buf,0);
-    GRN_TEXT_SET(ctx, &grn_buf, key, key_length);
-    char *val = GRN_TEXT_VALUE(&grn_buf);
-    uint len = GRN_TEXT_LEN(&grn_buf), enc_len;
+    uint enc_len;
     mrn_multiple_column_key_encode(key_info,
-                                   (uchar *) val,
-                                   len,
+                                   (uchar *)key,
+                                   key_length,
                                    enc_buf,
                                    &enc_len, TRUE);
     key_restore(buf, enc_buf, key_info, enc_len);
-    grn_obj_unlink(ctx, &grn_buf);
   }
   DBUG_VOID_RETURN;
 }
-------------- next part --------------
HTML����������������������������...
Download 



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