mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Update Mroonga to the latest version on 2015-07-02T04:12:21+0900
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -313,18 +312,18 @@ namespace mrn {
|
||||
int error = 0;
|
||||
#ifdef WITH_GROONGA_NORMALIZER_MYSQL
|
||||
{
|
||||
# ifdef MRN_GROONGA_NORMALIZER_MYSQL_EMBEDDED
|
||||
GRN_PLUGIN_IMPL_NAME_TAGGED(init, normalizers_mysql)(ctx_);
|
||||
GRN_PLUGIN_IMPL_NAME_TAGGED(register, normalizers_mysql)(ctx_);
|
||||
# else
|
||||
grn_obj *mysql_normalizer;
|
||||
mysql_normalizer = grn_ctx_get(ctx_, "NormalizerMySQLGeneralCI", -1);
|
||||
if (mysql_normalizer) {
|
||||
grn_obj_unlink(ctx_, mysql_normalizer);
|
||||
} else {
|
||||
# ifdef MRN_GROONGA_NORMALIZER_MYSQL_EMBED
|
||||
GRN_PLUGIN_IMPL_NAME_TAGGED(init, normalizers_mysql)(ctx_);
|
||||
GRN_PLUGIN_IMPL_NAME_TAGGED(register, normalizers_mysql)(ctx_);
|
||||
# else
|
||||
grn_plugin_register(ctx_, GROONGA_NORMALIZER_MYSQL_PLUGIN_NAME);
|
||||
# endif
|
||||
}
|
||||
# endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user