[Groonga-commit] groonga/groonga at 3cd0751 [master] grndb: extract recover action as a method

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Dec 26 00:30:25 JST 2014


Kouhei Sutou	2014-12-26 00:30:25 +0900 (Fri, 26 Dec 2014)

  New Revision: 3cd07510fa49cf591c328b33d0ea7c3c003baf61
  https://github.com/groonga/groonga/commit/3cd07510fa49cf591c328b33d0ea7c3c003baf61

  Message:
    grndb: extract recover action as a method

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

  Modified: lib/mrb/scripts/command/grndb.rb (+6 -2)
===================================================================
--- lib/mrb/scripts/command/grndb.rb    2014-12-26 00:29:55 +0900 (2914617)
+++ lib/mrb/scripts/command/grndb.rb    2014-12-26 00:30:25 +0900 (9660697)
@@ -67,13 +67,17 @@ module Groonga
       def run_action(slop, database)
         case slop[:action]
         when :recover
-          database.recover
-          true
+          recover(database)
         when :check
           check(database)
         end
       end
 
+      def recover(database)
+        database.recover
+        true
+      end
+
       def check(database)
         all_unlocked = true
         database.each do |object|
-------------- next part --------------
HTML����������������������������...
Descargar 



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