[Groonga-commit] pgroonga/pgroonga at 80570a1 [master] check: try normal remove before force remove

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Jan 4 23:24:14 JST 2017


Kouhei Sutou	2017-01-04 23:24:14 +0900 (Wed, 04 Jan 2017)

  New Revision: 80570a198ebad0875c1f52ce834f5ac18091bcff
  https://github.com/pgroonga/pgroonga/commit/80570a198ebad0875c1f52ce834f5ac18091bcff

  Message:
    check: try normal remove before force remove

  Modified files:
    src/pgroonga-check.c

  Modified: src/pgroonga-check.c (+1 -1)
===================================================================
--- src/pgroonga-check.c    2017-01-04 23:19:16 +0900 (94e0c21)
+++ src/pgroonga-check.c    2017-01-04 23:24:14 +0900 (bde5520)
@@ -96,7 +96,7 @@ PGrnCheckDatabaseDirectory(grn_ctx *ctx, const char *databaseDirectoryPath)
 	grn_db_recover(ctx, db);
 	if (ctx->rc != GRN_SUCCESS)
 	{
-		grn_obj_close(ctx, db);
+		grn_obj_remove(ctx, db);
 		PGrnRemoveAllRelatedFiles(databaseDirectoryPath);
 		return;
 	}
-------------- next part --------------
HTML����������������������������...
Download 



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