diff options
author | Kentoku <kentokushiba@gmail.com> | 2017-10-10 23:15:25 +0900 |
---|---|---|
committer | Kentoku <kentokushiba@gmail.com> | 2017-10-10 23:15:25 +0900 |
commit | 13167e64898da6373fa8cab2ad89514eaf886412 (patch) | |
tree | 80bf1b092bc5ebd5d64624a2df41ac31bf115959 /storage/mroonga/vendor/groonga/benchmark/bench-query-optimizer.c | |
parent | 494d1bf8859bbc9f80779144d07ce0603523d813 (diff) | |
download | mariadb-git-13167e64898da6373fa8cab2ad89514eaf886412.tar.gz |
Update Mroonga to the latest version on 2017-10-10T23:15:25+0900
Diffstat (limited to 'storage/mroonga/vendor/groonga/benchmark/bench-query-optimizer.c')
-rw-r--r-- | storage/mroonga/vendor/groonga/benchmark/bench-query-optimizer.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/storage/mroonga/vendor/groonga/benchmark/bench-query-optimizer.c b/storage/mroonga/vendor/groonga/benchmark/bench-query-optimizer.c index d7ed91d0c56..4ce55c55b6a 100644 --- a/storage/mroonga/vendor/groonga/benchmark/bench-query-optimizer.c +++ b/storage/mroonga/vendor/groonga/benchmark/bench-query-optimizer.c @@ -1,6 +1,6 @@ /* -*- c-basic-offset: 2; coding: utf-8 -*- */ /* - Copyright (C) 2014 Kouhei Sutou <kou@clear-code.com> + Copyright (C) 2014-2016 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 @@ -135,12 +135,18 @@ teardown_database(grn_ctx *context, grn_obj *database) int main(int argc, gchar **argv) { + grn_rc rc; grn_ctx context; grn_obj *database; BenchReporter *reporter; gint n = 100; - grn_init(); + rc = grn_init(); + if (rc != GRN_SUCCESS) { + g_print("failed to initialize Groonga: <%d>: %s\n", + rc, grn_get_global_error_message()); + return EXIT_FAILURE; + } bench_init(&argc, &argv); grn_ctx_init(&context, 0); @@ -204,5 +210,5 @@ main(int argc, gchar **argv) grn_fin(); - return 0; + return EXIT_SUCCESS; } |