[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] fixed warning at adding index. refs #1168

Back to archive index

Kentoku null+****@clear*****
Thu Oct 4 10:41:05 JST 2012


Kentoku	2011-11-27 23:25:53 +0900 (Sun, 27 Nov 2011)

  New Revision: 31eed32d50613ff98c1941f2dcff651d483810f2
  https://github.com/mroonga/mroonga/commit/31eed32d50613ff98c1941f2dcff651d483810f2

  Log:
    fixed warning at adding index. refs #1168

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+4 -2)
===================================================================
--- ha_mroonga.cc    2011-11-27 22:03:51 +0900 (6bd2226)
+++ ha_mroonga.cc    2011-11-27 23:25:53 +0900 (6a08627)
@@ -7852,8 +7852,10 @@ int ha_mroonga::wrapper_add_index(TABLE *table_arg, KEY *key_info,
   if (!res && i > j &&
     (mrn_lock_type != F_UNLCK || !(res = wrapper_external_lock(thd, F_WRLCK)))
   ) {
-    if (!(res = wrapper_rnd_init(TRUE)))
-    {
+    if (
+      !(res = wrapper_start_stmt(thd, thr_lock_data.type)) &&
+      !(res = wrapper_rnd_init(TRUE))
+    ) {
       grn_obj key;
       GRN_TEXT_INIT(&key, 0);
       grn_bulk_space(ctx, &key, p_key_info->key_length);
-------------- next part --------------
HTML����������������������������...
Download 



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