[Box Backup-commit] COMMIT r1321 - box/chris/general/bin/bbstored

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Sat Mar 3 21:46:01 GMT 2007


Author: chris
Date: 2007-03-03 21:46:01 +0000 (Sat, 03 Mar 2007)
New Revision: 1321

Modified:
   box/chris/general/bin/bbstored/HousekeepStoreAccount.cpp
Log:
Use buffered streams to reduce file I/O while reading directories
(from chris/merge)


Modified: box/chris/general/bin/bbstored/HousekeepStoreAccount.cpp
===================================================================
--- box/chris/general/bin/bbstored/HousekeepStoreAccount.cpp	2007-03-03 21:45:33 UTC (rev 1320)
+++ box/chris/general/bin/bbstored/HousekeepStoreAccount.cpp	2007-03-03 21:46:01 UTC (rev 1321)
@@ -23,6 +23,7 @@
 #include "NamedLock.h"
 #include "autogen_BackupStoreException.h"
 #include "BackupStoreFile.h"
+#include "BufferedStream.h"
 
 #include "MemLeakFindOn.h"
 
@@ -252,7 +253,8 @@
 	
 	// Read the directory in
 	BackupStoreDirectory dir;
-	dir.ReadFromStream(*dirStream, IOStream::TimeOutInfinite);
+	BufferedStream buf(*dirStream);
+	dir.ReadFromStream(buf, IOStream::TimeOutInfinite);
 	dirStream->Close();
 	
 	// Is it empty?




More information about the Boxbackup-commit mailing list