diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-08-21 11:18:39 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-08-21 11:18:39 +0000 |
commit | 9cae0cb415d50e28d4819e54ce76131fbd9f7c1c (patch) | |
tree | d0adebf44b25de0b1ffd47b1de3182d3e24f69c5 /bin/bbstored/BBStoreDHousekeeping.cpp | |
parent | 7dbcaff4f698c914f9307cb69e742983e3a1a4e1 (diff) |
Run housekeeping synchronously on all platforms if daemon is run in
single process mode (-D), not just on Windows.
Add a housekeeping interface to allow Boxi to run housekeeping.
Diffstat (limited to 'bin/bbstored/BBStoreDHousekeeping.cpp')
-rw-r--r-- | bin/bbstored/BBStoreDHousekeeping.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/bbstored/BBStoreDHousekeeping.cpp b/bin/bbstored/BBStoreDHousekeeping.cpp index 4694c0bb..51c0e9d6 100644 --- a/bin/bbstored/BBStoreDHousekeeping.cpp +++ b/bin/bbstored/BBStoreDHousekeeping.cpp @@ -155,7 +155,11 @@ void BackupStoreDaemon::RunHousekeepingIfNeeded() void BackupStoreDaemon::OnIdle() { - #ifdef WIN32 + if (!IsSingleProcess()) + { + return; + } + if (!mHousekeepingInited) { HousekeepingInit(); @@ -163,7 +167,6 @@ void BackupStoreDaemon::OnIdle() } RunHousekeepingIfNeeded(); - #endif } // -------------------------------------------------------------------------- |