Skip to content
Snippets Groups Projects
Commit 76c6ad68 authored by Roman Tsisyk's avatar Roman Tsisyk Committed by Konstantin Osipov
Browse files

Refactor snapshot daemon loop

* Fix buggy math calculation and simplifies randomization logic
  introduced by gh-732. The primary difference is that the new
  implementation uses fixed periods (=box.cfg.snapshot_period)
  shifted by a random offset instead of floating periods
  (=box.cfg.snapshot_period + random). In addition, snapshot daemon
  now never start snapshoting earlier than box.cfg.snapshot_period time.

* Use fiber.channel() to control daemon

Fixes #1912
See also #732
parent ddac212f
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment