[Groonga-mysql-commit] mroonga/mroonga at ab70eca [master] Remove needless clause and the comment for the clause

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Mon Aug 26 17:54:59 JST 2013


Kouhei Sutou	2013-08-26 17:54:59 +0900 (Mon, 26 Aug 2013)

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

  Message:
    Remove needless clause and the comment for the clause
    
    Because variable name describes about it.
    
    Umm... We may be able to improve the variable name. I will try it.

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+1 -4)
===================================================================
--- ha_mroonga.cpp    2013-08-26 17:47:15 +0900 (080262b)
+++ ha_mroonga.cpp    2013-08-26 17:54:59 +0900 (f796bf2)
@@ -1340,10 +1340,7 @@ static uint mrn_alter_table_flags(uint flags) {
                       (flags & ALTER_DROP_INDEX)) ||
                      (flags & ALTER_CHANGE_COLUMN));
 #  endif
-  if (is_change_index) {
-    // Adding/dropping an index at once and changing an index aren't supported.
-    alter_flags |= 0;
-  } else {
+  if (!is_change_index) {
     alter_flags |=
       HA_INPLACE_ADD_INDEX_NO_READ_WRITE |
       HA_INPLACE_DROP_INDEX_NO_READ_WRITE |
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-mysql-commit mailing list
アーカイブの一覧に戻る