Ignore:
Timestamp:
28/06/2009 20:29:10 (3 years ago)
Author:
chris
Message:

Make housekeeping check the object reference counts and fix them if
they're wrong.

Add a callback interface to decouple housekeeping from the
BackupStoreDaemon?, allowing it to be called directly in tests.

Allow housekeeping callers to request it to keep trying forever to get a
lock on the account if it's busy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbstored/BackupStoreDaemon.h

    r2262 r2541  
    1515#include "BackupConstants.h" 
    1616#include "BackupStoreContext.h" 
     17#include "HousekeepStoreAccount.h" 
    1718#include "IOStreamGetLine.h" 
    1819 
    1920class BackupStoreAccounts; 
    2021class BackupStoreAccountDatabase; 
    21 class HousekeepStoreAccount; 
    2222 
    2323// -------------------------------------------------------------------------- 
     
    3030// -------------------------------------------------------------------------- 
    3131class BackupStoreDaemon : public ServerTLS<BOX_PORT_BBSTORED>, 
    32         HousekeepingInterface 
     32        HousekeepingInterface, HousekeepingCallback 
    3333{ 
    34         friend class HousekeepStoreAccount; 
    35  
    3634public: 
    3735        BackupStoreDaemon(); 
     
    6563        // Housekeeping functions 
    6664        void HousekeepingProcess(); 
    67         bool CheckForInterProcessMsg(int AccountNum = 0, int MaximumWaitTime = 0); 
    6865 
    6966        void LogConnectionStats(const char *commonName, const SocketStreamTLS &s); 
     67 
     68public: 
     69        // HousekeepingInterface implementation 
     70        virtual bool CheckForInterProcessMsg(int AccountNum = 0, int MaximumWaitTime = 0); 
    7071 
    7172private: 
Note: See TracChangeset for help on using the changeset viewer.