diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-04-09 22:15:57 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-04-09 22:15:57 +0000 |
commit | dc4ba0969146c6c4a82b1dace6bd9b11b818bcc9 (patch) | |
tree | f29918fdcab9a801685ebe6a6a7b5446c9cc69ba /lib/backupstore/BackupStoreFile.h | |
parent | 06af9253bc5df053dbe2208cbc724853294020a3 (diff) |
Poll command socket regularly during file uploads.
Makes the daemon responsive to polling and commands, even during a file
upload operation.
Diffstat (limited to 'lib/backupstore/BackupStoreFile.h')
-rw-r--r-- | lib/backupstore/BackupStoreFile.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/backupstore/BackupStoreFile.h b/lib/backupstore/BackupStoreFile.h index 8e2cefb6..776e6d22 100644 --- a/lib/backupstore/BackupStoreFile.h +++ b/lib/backupstore/BackupStoreFile.h @@ -27,6 +27,7 @@ typedef struct int64_t mTotalFileStreamSize; } BackupStoreFileStats; +class BackgroundTask; class RunStatusProvider; // Uncomment to disable backwards compatibility @@ -128,7 +129,8 @@ public: int64_t ContainerID, const BackupStoreFilename &rStoreFilename, int64_t *pModificationTime = 0, ReadLoggingStream::Logger* pLogger = NULL, - RunStatusProvider* pRunStatusProvider = NULL + RunStatusProvider* pRunStatusProvider = NULL, + BackgroundTask* pBackgroundTask = NULL ); static std::auto_ptr<BackupStoreFileEncodeStream> EncodeFileDiff ( @@ -138,7 +140,8 @@ public: int Timeout, DiffTimer *pDiffTimer, int64_t *pModificationTime = 0, - bool *pIsCompletelyDifferent = 0 + bool *pIsCompletelyDifferent = 0, + BackgroundTask* pBackgroundTask = NULL ); // Shortcut interface static int64_t QueryStoreFileDiff(BackupProtocolCallable& protocol, |