Changeset 2260
- Timestamp:
- 21/08/2008 11:14:23 (2 years ago)
- Files:
-
- 1 modified
-
box/trunk/bin/bbackupquery/BackupQueries.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/bin/bbackupquery/BackupQueries.cpp
r2259 r2260 1710 1710 // Compare contents, if it's a regular file not a link 1711 1711 // Remember, we MUST read the entire stream from the server. 1712 SelfFlushingStream flushObject(*objectStream); 1713 1712 1714 if(!fileOnServerStream->IsSymLink()) 1713 1715 { 1716 SelfFlushingStream flushFile(*fileOnServerStream); 1714 1717 // Open the local file 1715 1718 FileStream l(localPath.c_str()); … … 1741 1744 { 1742 1745 equal = false; 1743 }1744 1745 // Must always read the entire decoded stream, if it's not a symlink1746 if(fileOnServerStream->StreamDataLeft())1747 {1748 // Absorb all the data remaining1749 char buffer[2048];1750 while(fileOnServerStream->StreamDataLeft())1751 {1752 fileOnServerStream->Read(buffer, sizeof(buffer), mrConnection.GetTimeout());1753 }1754 }1755 1756 // Must always read the entire encoded stream1757 if(objectStream->StreamDataLeft())1758 {1759 // Absorb all the data remaining1760 char buffer[2048];1761 while(objectStream->StreamDataLeft())1762 {1763 objectStream->Read(buffer, sizeof(buffer), mrConnection.GetTimeout());1764 }1765 1746 } 1766 1747 }
