summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2006-08-31 19:59:02 +0000
committerChris Wilson <chris+github@qwirx.com>2006-08-31 19:59:02 +0000
commit94212acf332d56413ae0dc2a6c9c9fccb02f6bee (patch)
tree94dbf2c6b2f93a6c79776daa4a8b760d8373e380 /bin
parent4db6a80d27444cf90ae41c6876c141f9c6db8284 (diff)
* bin/bbstored/BackupCommands.cpp
- Use the same code for file names and file closing on other platforms that's needed on Win32
Diffstat (limited to 'bin')
-rw-r--r--bin/bbstored/BackupCommands.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/bin/bbstored/BackupCommands.cpp b/bin/bbstored/BackupCommands.cpp
index 845903b2..60a660d1 100644
--- a/bin/bbstored/BackupCommands.cpp
+++ b/bin/bbstored/BackupCommands.cpp
@@ -332,15 +332,11 @@ std::auto_ptr<ProtocolObject> BackupProtocolServerGetFile::DoCommand(BackupProto
std::auto_ptr<IOStream> diff2(rContext.OpenObject(patchID));
// Choose a temporary filename for the result of the combination
-#ifdef WIN32
std::ostringstream fs(rContext.GetStoreRoot());
fs << ".recombinetemp.";
fs << p;
std::string tempFn(fs.str());
tempFn = RaidFileController::DiscSetPathToFileSystemPath(rContext.GetStoreDiscSet(), tempFn, p + 16);
-#else
- std::string tempFn(RaidFileController::DiscSetPathToFileSystemPath(rContext.GetStoreDiscSet(), rContext.GetStoreRoot() + ".recombinetemp", p + 16 /* rotate which disc it's on */));
-#endif
// Open the temporary file
std::auto_ptr<IOStream> combined;
@@ -380,9 +376,7 @@ std::auto_ptr<ProtocolObject> BackupProtocolServerGetFile::DoCommand(BackupProto
combined->Seek(0, IOStream::SeekType_Absolute);
// Then shuffle round for the next go
-#ifdef WIN32
if (from.get()) from->Close();
-#endif
from = combined;
}