[Groonga-commit] groonga/groonga at 6625a68 [master] grndb: use recoverer class

Back to archive index

Kentaro Hayashi null+****@clear*****
Mon Jun 19 16:28:12 JST 2017


Kentaro Hayashi	2017-06-19 16:28:12 +0900 (Mon, 19 Jun 2017)

  New Revision: 6625a68b855a754d67db310bb38af314df89b0a1
  https://github.com/groonga/groonga/commit/6625a68b855a754d67db310bb38af314df89b0a1

  Merged 4ee26f7: Merge pull request #714 from kenhys/grndb-force-truncate

  Message:
    grndb: use recoverer class

  Modified files:
    lib/mrb/scripts/command_line/grndb.rb

  Modified: lib/mrb/scripts/command_line/grndb.rb (+3 -1)
===================================================================
--- lib/mrb/scripts/command_line/grndb.rb    2017-06-19 16:26:27 +0900 (4692130)
+++ lib/mrb/scripts/command_line/grndb.rb    2017-06-19 16:28:12 +0900 (a94c6b3)
@@ -92,8 +92,10 @@ module Groonga
       end
 
       def recover(database, options, arguments)
+        recoverer = Recoverer.new
+        recoverer.database = database
         begin
-          database.recover
+          recoverer.recover
         rescue Error => error
           failed("Failed to recover database: <#{@database_path}>",
                  error.message)
-------------- next part --------------
HTML����������������������������...
Download 



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