diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-09-13 15:28:38 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-09-13 15:28:38 +0000 |
commit | f3d1fd71bd8bb41b2ee95e72ae2d8fcb6a535d48 (patch) | |
tree | c9e1e499440bb7294ea94ab5442c0f4de5e32ba7 /bin/bbstored | |
parent | 2a7911e5fffaa4b67a86550f30afb0911fb176bf (diff) |
Allow stopping housekeeping during a run, between accounts, when the
daemon is requested to terminate or to reload its configuration.
Diffstat (limited to 'bin/bbstored')
-rw-r--r-- | bin/bbstored/BBStoreDHousekeeping.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/bbstored/BBStoreDHousekeeping.cpp b/bin/bbstored/BBStoreDHousekeeping.cpp index 51c0e9d6..1c1767ca 100644 --- a/bin/bbstored/BBStoreDHousekeeping.cpp +++ b/bin/bbstored/BBStoreDHousekeeping.cpp @@ -46,6 +46,12 @@ void BackupStoreDaemon::HousekeepingProcess() { RunHousekeepingIfNeeded(); + // Stop early? + if(StopRun()) + { + break; + } + // Calculate how long should wait before doing the next // housekeeping run int64_t timeNow = GetCurrentBoxTime(); |