Navigation Menu

Skip to content

Commit

Permalink
Make condition meaningful
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 17, 2015
1 parent 88e8c24 commit 455ec5a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/droonga-engine-join
Expand Up @@ -58,7 +58,7 @@ module Droonga
do_join
register_to_existing_nodes
set_source_node_role
unless @options["no-copy"]
if should_copy?
successed = copy_data
unless successed
do_cancel
Expand Down Expand Up @@ -131,6 +131,10 @@ module Droonga
@options[:dataset]
end

def should_copy?
not @options["no-copy"]
end

def joining_node
@joining_node ||= NodeName.new(:host => @options[:host],
:port => @options[:port],
Expand Down

0 comments on commit 455ec5a

Please sign in to comment.