- Timestamp:
- 27/08/2011 14:41:36 (9 months ago)
- Location:
- box/trunk/bin/bbackupd
- Files:
-
- 4 edited
-
BackupClientDirectoryRecord.cpp (modified) (1 diff)
-
BackupDaemon.cpp (modified) (3 diffs)
-
BackupDaemon.h (modified) (3 diffs)
-
BackupDaemonInterface.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/bin/bbackupd/BackupClientDirectoryRecord.cpp
r2980 r2981 1388 1388 // Flag as having done this for optimisation later 1389 1389 haveJustCreatedDirOnServer = true; 1390 rNotifier.NotifyDirectoryCreated(subDirObjectID, 1391 storeFilename.GetClearFilename(), 1392 dirname); 1390 1393 } 1391 1394 } -
box/trunk/bin/bbackupd/BackupDaemon.cpp
r2938 r2981 190 190 mDeleteStoreObjectInfoFile(false), 191 191 mDoSyncForcedByPreviousSyncError(false), 192 mNumFilesUploaded(-1), 193 mNumDirsCreated(-1), 192 194 mLogAllFileAccess(false), 193 195 mpProgressNotifier(this), … … 918 920 params.mMaxFileTimeInFuture = 919 921 SecondsToBoxTime(conf.GetKeyValueInt("MaxFileTimeInFuture")); 922 mNumFilesUploaded = 0; 923 mNumDirsCreated = 0; 920 924 921 925 if(conf.KeyExists("MaxUploadRate")) … … 1632 1636 << BackupStoreFile::msStats.mBytesAlreadyOnServer 1633 1637 << ", encoded size " 1634 << BackupStoreFile::msStats.mTotalFileStreamSize); 1638 << BackupStoreFile::msStats.mTotalFileStreamSize 1639 << ", " << mNumFilesUploaded << " files uploaded, " 1640 << mNumDirsCreated << " dirs created"); 1635 1641 1636 1642 // Reset statistics again -
box/trunk/bin/bbackupd/BackupDaemon.h
r2907 r2981 236 236 bool mDeleteStoreObjectInfoFile; 237 237 bool mDoSyncForcedByPreviousSyncError; 238 int64_t mNumFilesUploaded, mNumDirsCreated; 238 239 239 240 public: … … 478 479 "total size = " << FileSize << ", " 479 480 "uploaded size = " << UploadedSize); 480 } 481 } 482 mNumFilesUploaded++; 481 483 } 482 484 virtual void NotifyFileSynchronised( … … 489 491 BOX_INFO("Synchronised file: " << rLocalPath); 490 492 } 493 } 494 virtual void NotifyDirectoryCreated( 495 int64_t ObjectID, 496 const std::string& rLocalPath, 497 const std::string& rRemotePath) 498 { 499 if (mLogAllFileAccess) 500 { 501 BOX_NOTICE("Created directory: " << rRemotePath << 502 " (ID " << BOX_FORMAT_OBJECTID(ObjectID) << 503 ")"); 504 } 505 mNumDirsCreated++; 491 506 } 492 507 virtual void NotifyDirectoryDeleted( -
box/trunk/bin/bbackupd/BackupDaemonInterface.h
r2804 r2981 135 135 const std::string& rLocalPath, 136 136 int64_t FileSize) = 0; 137 virtual void NotifyDirectoryCreated( 138 int64_t ObjectID, 139 const std::string& rLocalPath, 140 const std::string& rRemotePath) = 0; 137 141 virtual void NotifyDirectoryDeleted( 138 142 int64_t ObjectID,
Note: See TracChangeset
for help on using the changeset viewer.
