Navigation Menu

Skip to content

Commit

Permalink
grndb: fix output channel
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jun 22, 2018
1 parent e16d2a8 commit 7ec9d89
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/mrb/scripts/command_line/grndb.rb
Expand Up @@ -102,7 +102,7 @@ def failed(*messages)
end

def recover(database, options, arguments)
recoverer = Recoverer.new
recoverer = Recoverer.new(@output)
recoverer.database = database
recoverer.force_truncate = options[:force_truncate]
recoverer.force_lock_clear = options[:force_lock_clear]
Expand All @@ -115,7 +115,7 @@ def recover(database, options, arguments)
end

def check(database, options, arguments)
checker = Checker.new
checker = Checker.new(@output)
checker.program_path = @program_path
checker.database_path = @database_path
checker.database = database
Expand Down Expand Up @@ -143,7 +143,8 @@ class Checker
attr_writer :log_paths
attr_writer :on_failure

def initialize
def initialize(output)
@output = output
@context = Context.instance
@checked = {}
end
Expand Down Expand Up @@ -452,7 +453,8 @@ class Recoverer
attr_writer :force_truncate
attr_writer :force_lock_clear

def initialize
def initialize(output)
@output = output
@context = Context.instance
end

Expand Down

0 comments on commit 7ec9d89

Please sign in to comment.