Navigation Menu

Skip to content

Commit

Permalink
Make both commands system.status and system.absorb-data to be process…
Browse files Browse the repository at this point in the history
…ed only at one replica
  • Loading branch information
piroor committed Apr 14, 2015
1 parent b632f1e commit 1923cc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/droonga/plugins/system/absorb_data.rb
Expand Up @@ -308,6 +308,7 @@ def start(request)

define_single_step do |step|
step.name = "system.absorb-data"
step.random = true
step.handler = AbsorbDataHandler
step.collector = Collectors::And
end
Expand Down
1 change: 1 addition & 0 deletions lib/droonga/plugins/system/status.rb
Expand Up @@ -44,6 +44,7 @@ def engine_state

define_single_step do |step|
step.name = "system.status"
step.random = true
step.handler = StatusHandler
step.collector = Collectors::Or
end
Expand Down

0 comments on commit 1923cc5

Please sign in to comment.