[Box Backup-dev] COMMIT r594 - box/chris/general/bin/bbstored
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Sat May 27 10:52:59 BST 2006
Author: chris
Date: 2006-05-27 09:52:52 +0000 (Sat, 27 May 2006)
New Revision: 594
Modified:
box/chris/general/bin/bbstored/HousekeepStoreAccount.cpp
Log:
* HousekeepStoreAccount.cpp
- Skip interprocess messaging on Win32, there is only one process
Modified: box/chris/general/bin/bbstored/HousekeepStoreAccount.cpp
===================================================================
--- box/chris/general/bin/bbstored/HousekeepStoreAccount.cpp 2006-05-27 09:52:32 UTC (rev 593)
+++ box/chris/general/bin/bbstored/HousekeepStoreAccount.cpp 2006-05-27 09:52:52 UTC (rev 594)
@@ -225,6 +225,7 @@
// --------------------------------------------------------------------------
bool HousekeepStoreAccount::ScanDirectory(int64_t ObjectID)
{
+#ifndef WIN32
if((--mCountUntilNextInterprocessMsgCheck) <= 0)
{
mCountUntilNextInterprocessMsgCheck = POLL_INTERPROCESS_MSG_CHECK_FREQUENCY;
@@ -235,6 +236,7 @@
return false;
}
}
+#endif
// Get the filename
std::string objectFilename;
@@ -485,6 +487,7 @@
// (there is likely to be more in the set than should be actually deleted).
for(std::set<DelEn, DelEnCompare>::iterator i(mPotentialDeletions.begin()); i != mPotentialDeletions.end(); ++i)
{
+#ifndef WIN32
if((--mCountUntilNextInterprocessMsgCheck) <= 0)
{
mCountUntilNextInterprocessMsgCheck = POLL_INTERPROCESS_MSG_CHECK_FREQUENCY;
@@ -495,6 +498,7 @@
return true;
}
}
+#endif
// Load up the directory it's in
// Get the filename
@@ -729,6 +733,7 @@
// Go through list
for(std::vector<int64_t>::const_iterator i(mEmptyDirectories.begin()); i != mEmptyDirectories.end(); ++i)
{
+#ifndef WIN32
if((--mCountUntilNextInterprocessMsgCheck) <= 0)
{
mCountUntilNextInterprocessMsgCheck = POLL_INTERPROCESS_MSG_CHECK_FREQUENCY;
@@ -739,6 +744,7 @@
return true;
}
}
+#endif
// Do not delete the root directory
if(*i == BACKUPSTORE_ROOT_DIRECTORY_ID)
More information about the Boxbackup-dev
mailing list