Skip to content

Commit

Permalink
lib.ptree: increment engine.configs in worker after applying actions
Browse files Browse the repository at this point in the history
(This is required for snabb top to pick up worker links.)
  • Loading branch information
eugeneia committed Sep 26, 2018
1 parent f08ed4b commit 18f34c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/ptree/worker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ function Worker:commit_pending_actions()
table.insert(to_apply, action)
end
end
if #to_apply > 0 then engine.apply_config_actions(to_apply) end
if #to_apply > 0 then
engine.apply_config_actions(to_apply)
counter.add(engine.configs)
end
self.pending_actions = {}
if should_flush then require('jit').flush() end
end
Expand Down

0 comments on commit 18f34c8

Please sign in to comment.