[Groonga-mysql-commit] mroonga/mroonga at e642619 [master] Add missing grn_ctx_fin()

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Sep 26 00:11:01 JST 2017


Kouhei Sutou	2017-09-26 00:11:01 +0900 (Tue, 26 Sep 2017)

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

  Message:
    Add missing grn_ctx_fin()

  Modified files:
    lib/mrn_database_repairer.cpp

  Modified: lib/mrn_database_repairer.cpp (+2 -0)
===================================================================
--- lib/mrn_database_repairer.cpp    2017-09-25 22:57:43 +0900 (effb3c69)
+++ lib/mrn_database_repairer.cpp    2017-09-26 00:11:01 +0900 (39376396)
@@ -87,6 +87,7 @@ namespace mrn {
       do {
         each_database_body(data.cFileName, &ctx, each_body_func, user_data);
       } while (FindNextFile(finder, &data) != 0);
+      grn_ctx_fin(&ctx);
     } else {
       GRN_LOG(ctx_, GRN_LOG_WARNING,
               "[mroonga][database][repairer][each] "
@@ -106,6 +107,7 @@ namespace mrn {
       while (struct dirent *entry = readdir(dir)) {
         each_database_body(entry->d_name, &ctx, each_body_func, user_data);
       }
+      grn_ctx_fin(&ctx);
     } else {
       GRN_LOG(ctx_, GRN_LOG_WARNING,
               "[mroonga][database][repairer][each] "
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-mysql-commit/attachments/20170926/e4441f3b/attachment-0001.htm 



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