null+****@clear*****
null+****@clear*****
2011年 11月 27日 (日) 23:25:53 JST
Kentoku 2011-11-27 14:25:53 +0000 (Sun, 27 Nov 2011)
New Revision: 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 13:03:51 +0000 (6bd2226)
+++ ha_mroonga.cc 2011-11-27 14:25:53 +0000 (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);