discourse/lib/plugin
Daniel Waterworth 83e649d08e FIX: Clobbering plugin files on startup is problematic
On startup, (including when starting a rails console) we manipule a
collection of plugin files. Writing these files is done in multiple
observable steps, which presents opportunities for race conditions and
causes temporary corruption.

This commit uses the write, fsync and rename trick to atomically
overwrite these files instead, but reads them first to avoid unnecessary
writes.

c457d3bf was a previous attempt to fix the same problem.
2020-03-05 11:51:56 +00:00
..
filter.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
filter_manager.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
instance.rb FIX: Clobbering plugin files on startup is problematic 2020-03-05 11:51:56 +00:00
metadata.rb DEV: Mark `discourse-categories-suppressed` as official 2020-03-04 09:35:04 -08:00