Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
ac12ab8f
Commit
ac12ab8f
authored
Oct 16, 2017
by
Kentoku
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Mroonga to the latest version on 2017-10-16T09:50:49+0900
parent
13167e64
Changes
30
Hide whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
250 additions
and
41 deletions
+250
-41
storage/mroonga/Makefile.am
storage/mroonga/Makefile.am
+2
-0
storage/mroonga/mysql-test/mroonga/include/mroonga/check_version.inc
...onga/mysql-test/mroonga/include/mroonga/check_version.inc
+1
-0
storage/mroonga/mysql-test/mroonga/include/mroonga/skip_mariadb_10_1.inc
.../mysql-test/mroonga/include/mroonga/skip_mariadb_10_1.inc
+24
-0
storage/mroonga/mysql-test/mroonga/storage/r/foreign_key_alter_add.result
...mysql-test/mroonga/storage/r/foreign_key_alter_add.result
+0
-3
storage/mroonga/mysql-test/mroonga/storage/r/foreign_key_alter_drop.result
...ysql-test/mroonga/storage/r/foreign_key_alter_drop.result
+0
-2
storage/mroonga/mysql-test/mroonga/storage/r/foreign_key_create.result
...ga/mysql-test/mroonga/storage/r/foreign_key_create.result
+0
-2
storage/mroonga/mysql-test/mroonga/storage/r/variable_enable_operations_recording_insert.result
...rage/r/variable_enable_operations_recording_insert.result
+27
-7
storage/mroonga/mysql-test/mroonga/storage/t/foreign_key_alter_add.test
...a/mysql-test/mroonga/storage/t/foreign_key_alter_add.test
+1
-0
storage/mroonga/mysql-test/mroonga/storage/t/foreign_key_alter_drop.test
.../mysql-test/mroonga/storage/t/foreign_key_alter_drop.test
+1
-0
storage/mroonga/mysql-test/mroonga/storage/t/foreign_key_create.test
...onga/mysql-test/mroonga/storage/t/foreign_key_create.test
+1
-0
storage/mroonga/mysql-test/mroonga/storage/t/foreign_key_rename.test
...onga/mysql-test/mroonga/storage/t/foreign_key_rename.test
+1
-0
storage/mroonga/mysql-test/mroonga/storage/t/variable_enable_operations_recording_insert.test
...torage/t/variable_enable_operations_recording_insert.test
+20
-6
storage/mroonga/packages/apt/Vagrantfile
storage/mroonga/packages/apt/Vagrantfile
+1
-1
storage/mroonga/packages/rpm/centos/mariadb-mroonga.spec.in
storage/mroonga/packages/rpm/centos/mariadb-mroonga.spec.in
+4
-1
storage/mroonga/packages/rpm/centos/mysql55-mroonga.spec.in
storage/mroonga/packages/rpm/centos/mysql55-mroonga.spec.in
+3
-0
storage/mroonga/packages/rpm/centos/mysql56-community-mroonga.spec.in
...nga/packages/rpm/centos/mysql56-community-mroonga.spec.in
+3
-0
storage/mroonga/packages/rpm/centos/percona-server-56-mroonga.spec.in
...nga/packages/rpm/centos/percona-server-56-mroonga.spec.in
+3
-0
storage/mroonga/packages/source/Makefile.am
storage/mroonga/packages/source/Makefile.am
+2
-2
storage/mroonga/packages/yum/Vagrantfile
storage/mroonga/packages/yum/Vagrantfile
+1
-1
storage/mroonga/plugin_version
storage/mroonga/plugin_version
+1
-1
storage/mroonga/test/run-sql-test.sh
storage/mroonga/test/run-sql-test.sh
+1
-2
storage/mroonga/tools/travis/install.sh
storage/mroonga/tools/travis/install.sh
+2
-1
storage/mroonga/vendor/groonga/lib/CMakeLists.txt
storage/mroonga/vendor/groonga/lib/CMakeLists.txt
+10
-5
storage/mroonga/vendor/groonga/lib/Makefile.am
storage/mroonga/vendor/groonga/lib/Makefile.am
+5
-1
storage/mroonga/vendor/groonga/lib/c_sources.am
storage/mroonga/vendor/groonga/lib/c_sources.am
+1
-3
storage/mroonga/vendor/groonga/lib/cpp_sources.am
storage/mroonga/vendor/groonga/lib/cpp_sources.am
+3
-0
storage/mroonga/vendor/groonga/tools/groonga-benchmark-indexing.rb
...roonga/vendor/groonga/tools/groonga-benchmark-indexing.rb
+129
-0
storage/mroonga/version
storage/mroonga/version
+1
-1
storage/mroonga/version_in_hex
storage/mroonga/version_in_hex
+1
-1
storage/mroonga/version_micro
storage/mroonga/version_micro
+1
-1
No files found.
storage/mroonga/Makefile.am
View file @
ac12ab8f
...
...
@@ -73,6 +73,8 @@ update-latest-release: ensure-cutter-source-path
$(PACKAGE)
$(OLD_RELEASE)
$(OLD_RELEASE_DATE)
\
$(VERSION)
$(NEW_RELEASE_DATE)
\
packages/rpm/centos/mariadb-mroonga.spec.in
\
packages/rpm/centos/mariadb-10.1-mroonga.spec.in
\
packages/rpm/centos/mariadb-10.2-mroonga.spec.in
\
packages/rpm/centos/mysql55-mroonga.spec.in
\
packages/rpm/centos/mysql56-community-mroonga.spec.in
\
packages/rpm/centos/mysql57-community-mroonga.spec.in
\
...
...
storage/mroonga/mysql-test/mroonga/include/mroonga/check_version.inc
View file @
ac12ab8f
...
...
@@ -22,6 +22,7 @@ let $version_5_5 = `SELECT $version_major_minor = 5.5`;
let
$version_5_6
=
`SELECT $version_major_minor = 5.6`
;
let
$version_5_7
=
`SELECT $version_major_minor = 5.7`
;
let
$version_10_0
=
`SELECT $version_major_minor = 10.0`
;
let
$version_10_1
=
`SELECT $version_major_minor = 10.1`
;
let
$version_10_2
=
`SELECT $version_major_minor = 10.2`
;
let
$version_5_5_or_later
=
`SELECT $version_major_minor >= 5.5`
;
...
...
storage/mroonga/mysql-test/mroonga/include/mroonga/skip_mariadb_10_1.inc
0 → 100644
View file @
ac12ab8f
# Copyright(C) 2017 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
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
--
source
../../
include
/
mroonga
/
check_version
.
inc
--
source
../../
include
/
mroonga
/
check_mariadb
.
inc
if
(
$version_10_1
)
{
if
(
$mariadb
)
{
--
skip
This
test
is
not
for
MariaDB
10.1
.
x
}
}
storage/mroonga/mysql-test/mroonga/storage/r/foreign_key_alter_add.result
View file @
ac12ab8f
...
...
@@ -17,8 +17,5 @@ articles CREATE TABLE `articles` (
KEY `comment` (`comment`),
CONSTRAINT `comment` FOREIGN KEY (`comment`) REFERENCES `test`.`comments` (`comment`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=Mroonga DEFAULT CHARSET=latin1
SELECT * FROM information_schema.referential_constraints;
CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME UNIQUE_CONSTRAINT_CATALOG UNIQUE_CONSTRAINT_SCHEMA UNIQUE_CONSTRAINT_NAME MATCH_OPTION UPDATE_RULE DELETE_RULE TABLE_NAME REFERENCED_TABLE_NAME
def test comment def test PRIMARY NONE RESTRICT RESTRICT articles comments
DROP TABLE articles;
DROP TABLE comments;
storage/mroonga/mysql-test/mroonga/storage/r/foreign_key_alter_drop.result
View file @
ac12ab8f
...
...
@@ -17,7 +17,5 @@ articles CREATE TABLE `articles` (
`comment` int(10) unsigned DEFAULT NULL,
KEY `comment` (`comment`)
) ENGINE=Mroonga DEFAULT CHARSET=latin1
SELECT * FROM information_schema.referential_constraints;
CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME UNIQUE_CONSTRAINT_CATALOG UNIQUE_CONSTRAINT_SCHEMA UNIQUE_CONSTRAINT_NAME MATCH_OPTION UPDATE_RULE DELETE_RULE TABLE_NAME REFERENCED_TABLE_NAME
DROP TABLE articles;
DROP TABLE comments;
storage/mroonga/mysql-test/mroonga/storage/r/foreign_key_create.result
View file @
ac12ab8f
...
...
@@ -18,7 +18,5 @@ articles CREATE TABLE `articles` (
CONSTRAINT `comment` FOREIGN KEY (`comment`) REFERENCES `test`.`comments` (`comment`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=Mroonga DEFAULT CHARSET=latin1
SELECT * FROM information_schema.referential_constraints;
CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME UNIQUE_CONSTRAINT_CATALOG UNIQUE_CONSTRAINT_SCHEMA UNIQUE_CONSTRAINT_NAME MATCH_OPTION UPDATE_RULE DELETE_RULE TABLE_NAME REFERENCED_TABLE_NAME
def test comment def test PRIMARY NONE RESTRICT RESTRICT articles comments
DROP TABLE articles;
DROP TABLE comments;
storage/mroonga/mysql-test/mroonga/storage/r/variable_enable_operations_recording_insert.result
View file @
ac12ab8f
SET GLOBAL mroonga_enable_operations_recording = true;
FLUSH TABLES;
DROP TABLE IF EXISTS diaries;
CREATE TABLE diaries (
title TEXT
) DEFAULT CHARSET=utf8;
INSERT INTO diaries VALUES("Research for Mroonga");
SELECT * FROM diaries;
title
Research for Mroonga
DROP TABLE diaries;
SELECT mroonga_command('truncate mroonga_operations');
mroonga_command('truncate mroonga_operations')
true
INSERT INTO diaries VALUES("Unlogged: Research for Mroonga");
SELECT mroonga_command('load --table mroonga_operations --values "[{}]"');
mroonga_command('load --table mroonga_operations --values "[{}]"')
1
SELECT mroonga_command('select mroonga_operations --output_columns _id');
mroonga_command('select mroonga_operations --output_columns _id')
[[[1],[["_id","UInt32"]],[2]]]
SET GLOBAL mroonga_enable_operations_recording = false;
FLUSH TABLES;
SELECT mroonga_command('truncate mroonga_operations');
mroonga_command('truncate mroonga_operations')
true
INSERT INTO diaries VALUES("Logged: Research for Mroonga");
SELECT mroonga_command('load --table mroonga_operations --values "[{}]"');
mroonga_command('load --table mroonga_operations --values "[{}]"')
1
SELECT mroonga_command('select mroonga_operations --output_columns _id');
mroonga_command('select mroonga_operations --output_columns _id')
[[[1],[["_id","UInt32"]],[1]]]
DROP TABLE diaries;
SELECT mroonga_command('truncate mroonga_operations');
mroonga_command('truncate mroonga_operations')
true
SET GLOBAL mroonga_enable_operations_recording = default;
FLUSH TABLES;
storage/mroonga/mysql-test/mroonga/storage/t/foreign_key_alter_add.test
View file @
ac12ab8f
...
...
@@ -16,6 +16,7 @@
--
source
../../
include
/
mroonga
/
skip_mysql_5_5
.
inc
--
source
../../
include
/
mroonga
/
skip_mariadb_5_5
.
inc
--
source
../../
include
/
mroonga
/
skip_mariadb_10_1
.
inc
--
source
include
/
have_innodb
.
inc
--
source
../../
include
/
mroonga
/
have_mroonga
.
inc
...
...
storage/mroonga/mysql-test/mroonga/storage/t/foreign_key_alter_drop.test
View file @
ac12ab8f
...
...
@@ -16,6 +16,7 @@
--
source
../../
include
/
mroonga
/
skip_mysql_5_5
.
inc
--
source
../../
include
/
mroonga
/
skip_mariadb_5_5
.
inc
--
source
../../
include
/
mroonga
/
skip_mariadb_10_1
.
inc
--
source
include
/
have_innodb
.
inc
--
source
../../
include
/
mroonga
/
have_mroonga
.
inc
...
...
storage/mroonga/mysql-test/mroonga/storage/t/foreign_key_create.test
View file @
ac12ab8f
...
...
@@ -16,6 +16,7 @@
--
source
../../
include
/
mroonga
/
skip_mysql_5_5
.
inc
--
source
../../
include
/
mroonga
/
skip_mariadb_5_5
.
inc
--
source
../../
include
/
mroonga
/
skip_mariadb_10_1
.
inc
--
source
include
/
have_innodb
.
inc
--
source
../../
include
/
mroonga
/
have_mroonga
.
inc
...
...
storage/mroonga/mysql-test/mroonga/storage/t/foreign_key_rename.test
View file @
ac12ab8f
...
...
@@ -16,6 +16,7 @@
--
source
../../
include
/
mroonga
/
skip_mysql_5_5
.
inc
--
source
../../
include
/
mroonga
/
skip_mariadb_5_5
.
inc
--
source
../../
include
/
mroonga
/
skip_mariadb_10_1
.
inc
--
source
include
/
have_innodb
.
inc
--
source
../../
include
/
mroonga
/
have_mroonga
.
inc
...
...
storage/mroonga/mysql-test/mroonga/storage/t/variable_enable_operations_recording_insert.test
View file @
ac12ab8f
# Copyright(C) 2017 Naoya Murakami <naoya@createfield.com>
# Copyright(C) 2017 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
...
...
@@ -14,23 +15,36 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
--
source
include
/
not_embedded
.
inc
--
source
../../
include
/
mroonga
/
have_mroonga
.
inc
--
source
../../
include
/
mroonga
/
have_mroonga_helper
.
inc
--
source
../../
include
/
mroonga
/
load_mroonga_functions
.
inc
SET
GLOBAL
mroonga_enable_operations_recording
=
true
;
FLUSH
TABLES
;
--
disable_warnings
DROP
TABLE
IF
EXISTS
diaries
;
--
enable_warnings
CREATE
TABLE
diaries
(
title
TEXT
)
DEFAULT
CHARSET
=
utf8
;
INSERT
INTO
diaries
VALUES
(
"Research for Mroonga"
);
SELECT
mroonga_command
(
'truncate mroonga_operations'
);
INSERT
INTO
diaries
VALUES
(
"Unlogged: Research for Mroonga"
);
SELECT
mroonga_command
(
'load --table mroonga_operations --values "[{}]"'
);
SELECT
mroonga_command
(
'select mroonga_operations --output_columns _id'
);
SELECT
*
FROM
diaries
;
SET
GLOBAL
mroonga_enable_operations_recording
=
false
;
FLUSH
TABLES
;
SELECT
mroonga_command
(
'truncate mroonga_operations'
);
INSERT
INTO
diaries
VALUES
(
"Logged: Research for Mroonga"
);
SELECT
mroonga_command
(
'load --table mroonga_operations --values "[{}]"'
);
SELECT
mroonga_command
(
'select mroonga_operations --output_columns _id'
);
DROP
TABLE
diaries
;
SELECT
mroonga_command
(
'truncate mroonga_operations'
);
SET
GLOBAL
mroonga_enable_operations_recording
=
false
;
SET
GLOBAL
mroonga_enable_operations_recording
=
default
;
FLUSH
TABLES
;
--
source
../../
include
/
mroonga
/
unload_mroonga_functions
.
inc
--
source
../../
include
/
mroonga
/
have_mroonga_deinit
.
inc
storage/mroonga/packages/apt/Vagrantfile
View file @
ac12ab8f
...
...
@@ -16,7 +16,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
},
{
:id
=>
"debian-stretch-i386"
,
:box
_url
=>
"http://packages.groonga.org/tmp/debian-9.0-i386.virtualbox.box
"
,
:box
=>
"bento/debian-9.1-i386
"
,
},
{
:id
=>
"debian-stretch-amd64"
,
...
...
storage/mroonga/packages/rpm/centos/mariadb-mroonga.spec.in
View file @
ac12ab8f
...
...
@@ -18,7 +18,7 @@
Name: mariadb-mroonga
Version: @VERSION@
Release:
2
%{?dist}
Release:
1
%{?dist}
Summary: A fast fulltext searchable storage engine for MariaDB
Group: Applications/Databases
...
...
@@ -154,6 +154,9 @@ fi
%doc mysql-mroonga-doc/*
%changelog
* Thu Oct 12 2017 Kentaro Hayashi <hayashi@clear-code.com> - 7.07-1
- new upstream release.
* Fri Sep 15 2017 Kouhei Sutou <kou@clear-code.com> - 7.06-2
- rebuild against the latest MariaDB.
...
...
storage/mroonga/packages/rpm/centos/mysql55-mroonga.spec.in
View file @
ac12ab8f
...
...
@@ -163,6 +163,9 @@ fi
%doc mysql-mroonga-doc/*
%changelog
* Thu Oct 12 2017 Kentaro Hayashi <hayashi@clear-code.com> - 7.07-1
- new upstream release.
* Tue Aug 29 2017 Kentaro Hayashi <hayashi@clear-code.com> - 7.06-1
- new upstream release.
...
...
storage/mroonga/packages/rpm/centos/mysql56-community-mroonga.spec.in
View file @
ac12ab8f
...
...
@@ -184,6 +184,9 @@ fi
%doc mysql-mroonga-doc/*
%changelog
* Thu Oct 12 2017 Kentaro Hayashi <hayashi@clear-code.com> - 7.07-1
- new upstream release.
* Tue Aug 29 2017 Kentaro Hayashi <hayashi@clear-code.com> - 7.06-1
- new upstream release.
...
...
storage/mroonga/packages/rpm/centos/percona-server-56-mroonga.spec.in
View file @
ac12ab8f
...
...
@@ -179,6 +179,9 @@ fi
%doc mysql-mroonga-doc/*
%changelog
* Thu Oct 12 2017 Kentaro Hayashi <hayashi@clear-code.com> - 7.07-1
- new upstream release.
* Tue Aug 29 2017 Kentaro Hayashi <hayashi@clear-code.com> - 7.06-1
- new upstream release.
...
...
storage/mroonga/packages/source/Makefile.am
View file @
ac12ab8f
MROONGA_BASE
=
$(PACKAGE)
-
$(VERSION)
MROONGA_TAR_GZ
=
$(MROONGA_BASE)
.tar.gz
GROONGA_VERSION
=
7.0.
6
GROONGA_VERSION
=
7.0.
7
GROONGA_BASE
=
groonga-
$(GROONGA_VERSION)
GROONGA_TAR_GZ
=
$(GROONGA_BASE)
.tar.gz
...
...
@@ -11,7 +11,7 @@ GROONGA_NORMALIZER_MYSQL_BASE = \
GROONGA_NORMALIZER_MYSQL_TAR_GZ
=
\
$(GROONGA_NORMALIZER_MYSQL_BASE)
.tar.gz
MARIADB_VERSION
=
10.1.2
6
MARIADB_VERSION
=
10.1.2
8
MARIADB_BASE
=
mariadb-
$(MARIADB_VERSION)
MARIADB_TAR_GZ
=
$(MARIADB_BASE)
.tar.gz
...
...
storage/mroonga/packages/yum/Vagrantfile
View file @
ac12ab8f
...
...
@@ -16,7 +16,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
},
{
:id
=>
"centos-7-x86_64"
,
:box
=>
"bento/centos-7.
3
"
,
:box
=>
"bento/centos-7.
4
"
,
},
]
...
...
storage/mroonga/plugin_version
View file @
ac12ab8f
7.6
\ No newline at end of file
7.7
\ No newline at end of file
storage/mroonga/test/run-sql-test.sh
View file @
ac12ab8f
#!/bin/sh
#
# Copyright(C) 2010 Tetsuro IKEDA
# Copyright(C) 2010-201
5
Kouhei Sutou <kou@clear-code.com>
# Copyright(C) 2010-201
7
Kouhei Sutou <kou@clear-code.com>
# Copyright(C) 2011 Kazuhiko
#
# This library is free software; you can redistribute it and/or
...
...
@@ -228,7 +228,6 @@ mysql_test_run_args=""
if
[
"
${
percona
}
"
!=
"yes"
]
;
then
mysql_test_run_args
=
"
${
mysql_test_run_args
}
--mem"
fi
mysql_test_run_args
=
"
${
mysql_test_run_args
}
--no-check-testcases"
mysql_test_run_args
=
"
${
mysql_test_run_args
}
--parallel=
${
n_processors
}
"
mysql_test_run_args
=
"
${
mysql_test_run_args
}
--retry=1"
mysql_test_run_args
=
"
${
mysql_test_run_args
}
--suite=
${
test_suite_names
}
"
...
...
storage/mroonga/tools/travis/install.sh
View file @
ac12ab8f
...
...
@@ -22,7 +22,8 @@ set -e
# export GROONGA_MASTER=yes
# export GROONGA_NORMALIZER_MYSQL_MASTER=yes
mariadb_download_base
=
http://mirror.jmu.edu/pub/mariadb
#mariadb_download_base=http://mirror.jmu.edu/pub/mariadb
mariadb_download_base
=
http://ftp.osuosl.org/pub/mariadb
version
=
$(
echo
"
$MYSQL_VERSION
"
|
sed
-r
-e
's/^(mysql|mariadb|percona-server)-//'
)
series
=
$(
echo
"
$version
"
|
sed
-r
-e
's/^([0-9]+\.[0-9]+).*$/\1/g'
)
...
...
storage/mroonga/vendor/groonga/lib/CMakeLists.txt
View file @
ac12ab8f
...
...
@@ -25,7 +25,8 @@ include_directories(
${
LIBZSTD_INCLUDE_DIRS
}
${
MESSAGE_PACK_INCLUDE_DIRS
}
)
read_file_list
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/sources.am LIBGROONGA_SOURCES
)
read_file_list
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/c_sources.am LIBGROONGA_C_SOURCES
)
read_file_list
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/cpp_sources.am LIBGROONGA_CPP_SOURCES
)
read_file_list
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/dat/sources.am LIBGRNDAT_SOURCES
)
string
(
REGEX REPLACE
"([^;]+)"
"dat/
\\
1"
LIBGRNDAT_SOURCES
"
${
LIBGRNDAT_SOURCES
}
"
)
...
...
@@ -51,23 +52,27 @@ else()
endif
()
set_source_files_properties
(
${
LIBGROONGA_SOURCES
}
${
LIBGROONGA_
C_
SOURCES
}
${
LIBGRNMRB_SOURCES
}
${
LIBGRNPROC_SOURCES
}
${
LIBGRNTS_SOURCES
}
PROPERTIES
COMPILE_FLAGS
"
${
GRN_C_COMPILE_FLAGS
}
"
)
set_source_files_properties
(
${
LIBGROONGA_SOURCES
}
${
LIBGROONGA_C_SOURCES
}
${
LIBGROONGA_CPP_SOURCES
}
${
LIBGRNMRB_SOURCES
}
PROPERTIES
COMPILE_DEFINITIONS
"
${
MRUBY_DEFINITIONS
}
"
)
set_source_files_properties
(
dat.cpp
${
LIBGRNDAT_SOURCES
}
set_source_files_properties
(
${
LIBGROONGA_CPP_SOURCES
}
${
LIBGRNDAT_SOURCES
}
PROPERTIES
COMPILE_FLAGS
"
${
GRN_CXX_COMPILE_FLAGS
}
"
)
set
(
GRN_ALL_SOURCES
${
LIBGROONGA_SOURCES
}
${
LIBGROONGA_C_SOURCES
}
${
LIBGROONGA_CPP_SOURCES
}
${
LIBGRNDAT_SOURCES
}
${
LIBGRNMRB_SOURCES
}
${
LIBGRNPROC_SOURCES
}
...
...
storage/mroonga/vendor/groonga/lib/Makefile.am
View file @
ac12ab8f
...
...
@@ -36,7 +36,11 @@ DEFAULT_INCLUDES = \
DEFS
+=
-D_REENTRANT
$(GRN_DEFS)
-DGRN_DAT_EXPORT
include
sources.am
include
c_sources.am
include
cpp_sources.am
libgroonga_la_SOURCES
=
\
$(libgroonga_c_sources)
\
$(libgroonga_cpp_source)
#nfkc.c:
# $(RUBY) nfkc.rb --impl=table
...
...
storage/mroonga/vendor/groonga/lib/sources.am
→
storage/mroonga/vendor/groonga/lib/
c_
sources.am
View file @
ac12ab8f
libgroonga_
la_SOURCES
= \
libgroonga_
c_sources
= \
alloc.c \
grn_alloc.h \
arrow.cpp \
cache.c \
grn_cache.h \
column.c \
...
...
@@ -15,7 +14,6 @@ libgroonga_la_SOURCES = \
grn_ctx_impl.h \
ctx_impl_mrb.c \
grn_ctx_impl_mrb.h \
dat.cpp \
grn_dat.h \
db.c \
grn_db.h \
...
...
storage/mroonga/vendor/groonga/lib/cpp_sources.am
0 → 100644
View file @
ac12ab8f
libgroonga_cpp_source = \
arrow.cpp \
dat.cpp
storage/mroonga/vendor/groonga/tools/groonga-benchmark-indexing.rb
0 → 100755
View file @
ac12ab8f
#!/usr/bin/env ruby
require
"fileutils"
require
"json"
require
"optparse"
class
IndexingBenchmarker
def
initialize
@groonga
=
"groonga"
@database_path
=
nil
@benchmark_database_dir
=
detect_benchmark_database_dir
end
def
run
catch
(
:run
)
do
parse_options!
end
dump_no_indexes
=
dump
(
"dump-no-indexes.grn"
,
"--dump_indexes"
,
"no"
)
dump_only_indexes
=
dump
(
"dump-only-indexes.grn"
,
"--dump_plugins"
,
"no"
,
"--dump_schema"
,
"no"
,
"--dump_records"
,
"no"
,
"--dump_configs"
,
"no"
)
dump_no_records
=
dump
(
"dump-no-records.grn"
,
"--dump_records"
,
"no"
)
dump_only_records
=
dump
(
"dump-only-records.grn"
,
"--dump_plugins"
,
"no"
,
"--dump_schema"
,
"no"
,
"--dump_indexes"
,
"no"
,
"--dump_configs"
,
"no"
)
create_benchmark_database
do
p
[
:load_record
,
measure
(
dump_no_indexes
)]
p
[
:static_index_creation
,
measure
(
dump_only_indexes
)]
end
create_benchmark_database
do
p
[
:create_schema
,
measure
(
dump_no_records
)]
p
[
:load_record_and_create_index
,
measure
(
dump_only_records
)]
end
true
end
private
def
detect_benchmark_database_dir
candiates
=
[
"/dev/shm"
,
"tmp"
,
]
candiates
.
find
do
|
candidate
|
File
.
exist?
(
candidate
)
end
end
def
benchmark_database_path
"
#{
@benchmark_database_dir
}
/bench-db/db"
end
def
parse_options!
option_parser
=
OptionParser
.
new
do
|
parser
|
parser
.
banner
+=
" SOURCE_DATABASE"
parser
.
on
(
"--groonga=PATH"
,
"Use PATH as groonga command path"
)
do
|
path
|
@groonga
=
path
end
parser
.
on
(
"--benchmark-database-dir=DIR"
,
"Use DIR to put benchmark database"
)
do
|
dir
|
@benchmark_database_dir
=
dir
end
end
@database_path
,
=
option_parser
.
parse!
(
ARGV
)
if
@database_path
.
nil?
puts
(
option_parser
)
throw
(
:run
)
end
end
def
dump
(
path
,
*
dump_options
)
return
path
if
File
.
exist?
(
path
)
unless
system
(
@groonga
,
@database_path
,
"dump"
,
*
dump_options
,
:out
=>
path
)
raise
"failed to dump:
#{
dump_options
.
inspect
}
"
end
path
end
def
create_benchmark_database
dir
=
File
.
dirname
(
benchmark_database_path
)
FileUtils
.
rm_rf
(
dir
)
FileUtils
.
mkdir_p
(
dir
)
system
(
@groonga
,
"-n"
,
benchmark_database_path
,
"shutdown"
,
:out
=>
IO
::
NULL
)
begin
yield
ensure
FileUtils
.
rm_rf
(
dir
)
end
end
def
measure
(
dump_path
)
result
=
"result"
begin
system
(
@groonga
,
"--file"
,
dump_path
,
benchmark_database_path
,
:out
=>
result
)
File
.
open
(
result
)
do
|
output
|
output
.
each_line
.
inject
(
0
)
do
|
result
,
line
|
result
+
JSON
.
parse
(
line
)[
0
][
2
]
end
end
ensure
FileUtils
.
rm_f
(
result
)
end
end
end
exit
(
IndexingBenchmarker
.
new
.
run
)
storage/mroonga/version
View file @
ac12ab8f
7.06
\ No newline at end of file
7.07
\ No newline at end of file
storage/mroonga/version_in_hex
View file @
ac12ab8f
0x0706
\ No newline at end of file
0x0707
\ No newline at end of file
storage/mroonga/version_micro
View file @
ac12ab8f
6
\ No newline at end of file
7
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment