[Groonga-mysql-commit] mroonga/mroonga at 6eb4ca2 [master] Reduce needless groonga-normalizer-mysql checks

Back to archive index

Kouhei Sutou null+****@clear*****
Sun May 17 16:00:05 JST 2015


Kouhei Sutou	2015-05-17 16:00:05 +0900 (Sun, 17 May 2015)

  New Revision: 6eb4ca205ea0d9892073a7431ab65be21eb0844c
  https://github.com/mroonga/mroonga/commit/6eb4ca205ea0d9892073a7431ab65be21eb0844c

  Message:
    Reduce needless groonga-normalizer-mysql checks

  Modified files:
    lib/mrn_database_manager.cpp

  Modified: lib/mrn_database_manager.cpp (+2 -3)
===================================================================
--- lib/mrn_database_manager.cpp    2015-05-17 12:10:27 +0900 (f0e8df0)
+++ lib/mrn_database_manager.cpp    2015-05-17 16:00:05 +0900 (cfd17b2)
@@ -2,7 +2,7 @@
 /*
   Copyright(C) 2010 Tetsuro IKEDA
   Copyright(C) 2010-2013 Kentoku SHIBA
-  Copyright(C) 2011-2014 Kouhei Sutou <kou �� clear-code.com>
+  Copyright(C) 2011-2015 Kouhei Sutou <kou �� clear-code.com>
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
@@ -126,13 +126,12 @@ namespace mrn {
                    mapper.db_name(), strlen(mapper.db_name()),
                    &db_address, NULL);
       memcpy(db_address, db, sizeof(grn_obj *));
+      error = ensure_normalizers_registered(*db);
     } else {
       memcpy(db, db_address, sizeof(grn_obj *));
       grn_ctx_use(ctx_, *db);
     }
 
-    error = ensure_normalizers_registered(*db);
-
     DBUG_RETURN(error);
   }
 
-------------- next part --------------
HTML����������������������������...
Download 



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