summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2015-08-29 08:46:09 +0000
committerChris Wilson <chris+github@qwirx.com>2015-08-29 08:46:09 +0000
commit161181f9e6f8bad2df42aa7a73ac620452663248 (patch)
tree453483815d03083cb2d5dc2d7782e362d635b92e /lib
parentd3f3dfaf37bcfe3d7c07db1f38e8a8487a9d1e0f (diff)
Allow verifying a BackupStoreFile without closing underlying stream
Diffstat (limited to 'lib')
-rw-r--r--lib/backupstore/BackupStoreFile.cpp4
-rw-r--r--lib/backupstore/BackupStoreFile.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/backupstore/BackupStoreFile.cpp b/lib/backupstore/BackupStoreFile.cpp
index 2ddb82e1..d68ccfe1 100644
--- a/lib/backupstore/BackupStoreFile.cpp
+++ b/lib/backupstore/BackupStoreFile.cpp
@@ -479,9 +479,9 @@ void BackupStoreFile::VerifyStream::Write(const void *pBuffer, int NBytes, int T
// --------------------------------------------------------------------------
-void BackupStoreFile::VerifyStream::Close()
+void BackupStoreFile::VerifyStream::Close(bool CloseCopyStream)
{
- if(mpCopyToStream)
+ if(mpCopyToStream && CloseCopyStream)
{
mpCopyToStream->Close();
}
diff --git a/lib/backupstore/BackupStoreFile.h b/lib/backupstore/BackupStoreFile.h
index 3b874e0e..fe69caeb 100644
--- a/lib/backupstore/BackupStoreFile.h
+++ b/lib/backupstore/BackupStoreFile.h
@@ -172,7 +172,7 @@ public:
}
virtual void Write(const void *pBuffer, int NBytes,
int Timeout = IOStream::TimeOutInfinite);
- virtual void Close();
+ virtual void Close(bool CloseCopyStream = true);
virtual bool StreamDataLeft()
{
THROW_EXCEPTION(CommonException, NotSupported);