Skip to content

Commit

Permalink
Cache invalidation...
Browse files Browse the repository at this point in the history
Typically changes are made in the UI and work is queued for another worker
to write the file.  Ensure that the worker has the latest settings before
writing the changes to the file.

https://bugzilla.redhat.com/show_bug.cgi?id=1517959
  • Loading branch information
bdunne committed Dec 5, 2017
1 parent 6b61ea8 commit 81b2864
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/miq_server/ntp_management.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ def ntp_reload
# matches ntp_reload_queue's guard clause
return if !MiqEnvironment::Command.is_appliance? || MiqEnvironment::Command.is_container?

# Bust the settings cache allowing this worker to apply any recent changes made by another (UI) worker
Vmdb::Settings.reload!
ntp_settings = get_config("vmdb").config[:ntp]

if @ntp_settings && @ntp_settings == ntp_settings
Expand Down

0 comments on commit 81b2864

Please sign in to comment.