Changeset 2910 for box/trunk/bin
- Timestamp:
- 14/04/2011 07:19:25 (14 months ago)
- File:
-
- 1 edited
-
box/trunk/bin/bbackupd/BackupDaemon.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/bin/bbackupd/BackupDaemon.cpp
r2907 r2910 390 390 } 391 391 392 #ifdef ENABLE_VSS 393 HRESULT result = CoInitialize(NULL); 394 if(result != S_OK) 395 { 396 BOX_ERROR("VSS: Failed to initialize COM: " << 397 GetMsgForHresult(result)); 398 return 1; 399 } 400 #endif 401 392 402 int returnCode; 393 403 … … 990 1000 #endif 991 1001 992 (*i)->mpDirectoryRecord->SyncDirectory( 993 params, 1002 (*i)->mpDirectoryRecord->SyncDirectory(params, 994 1003 BackupProtocolClientListDirectory::RootDirectory, 995 1004 locationPath, std::string("/") + (*i)->mName); … … 1116 1125 std::map<char, VSS_ID> volumesIncluded; 1117 1126 1118 HRESULT result = CoInitialize(NULL); 1119 if(result != S_OK) 1120 { 1121 BOX_ERROR("VSS: Failed to initialize COM: " << 1122 GetMsgForHresult(result)); 1123 return; 1124 } 1125 1126 result = ::CreateVssBackupComponents(&mpVssBackupComponents); 1127 HRESULT result = ::CreateVssBackupComponents(&mpVssBackupComponents); 1127 1128 if(result != S_OK) 1128 1129 { … … 1238 1239 } 1239 1240 1240 BOX_ INFO("VSS: writer " << iWriter << " component " <<1241 BOX_TRACE("VSS: writer " << iWriter << " component " << 1241 1242 iComponent << " info:"); 1242 1243 switch(pComponentInfo->type) … … 1249 1250 } 1250 1251 1251 BOX_ INFO("VSS: logical path: " <<1252 BOX_TRACE("VSS: logical path: " << 1252 1253 BstrToString(pComponentInfo->bstrLogicalPath)); 1253 BOX_ INFO("VSS: component name: " <<1254 BOX_TRACE("VSS: component name: " << 1254 1255 BstrToString(pComponentInfo->bstrComponentName)); 1255 BOX_ INFO("VSS: caption: " <<1256 BOX_TRACE("VSS: caption: " << 1256 1257 BstrToString(pComponentInfo->bstrCaption)); 1257 BOX_ INFO("VSS: restore metadata: " <<1258 BOX_TRACE("VSS: restore metadata: " << 1258 1259 pComponentInfo->bRestoreMetadata); 1259 BOX_ INFO("VSS: notify on complete: " <<1260 BOX_TRACE("VSS: notify on complete: " << 1260 1261 pComponentInfo->bRestoreMetadata); 1261 BOX_ INFO("VSS: selectable: " <<1262 BOX_TRACE("VSS: selectable: " << 1262 1263 pComponentInfo->bSelectable); 1263 BOX_ INFO("VSS: selectable for restore: " <<1264 BOX_TRACE("VSS: selectable for restore: " << 1264 1265 pComponentInfo->bSelectableForRestore); 1265 BOX_ INFO("VSS: component flags: " <<1266 BOX_TRACE("VSS: component flags: " << 1266 1267 BOX_FORMAT_HEX32(pComponentInfo->dwComponentFlags)); 1267 BOX_ INFO("VSS: file count: " <<1268 BOX_TRACE("VSS: file count: " << 1268 1269 pComponentInfo->cFileCount); 1269 BOX_ INFO("VSS: databases: " <<1270 BOX_TRACE("VSS: databases: " << 1270 1271 pComponentInfo->cDatabases); 1271 BOX_ INFO("VSS: log files: " <<1272 BOX_TRACE("VSS: log files: " << 1272 1273 pComponentInfo->cLogFiles); 1273 BOX_ INFO("VSS: dependencies: " <<1274 BOX_TRACE("VSS: dependencies: " << 1274 1275 pComponentInfo->cDependencies); 1275 1276 … … 1433 1434 } 1434 1435 1435 BOX_ INFO("VSS: Writer " << iWriter << " (" <<1436 BOX_TRACE("VSS: Writer " << iWriter << " (" << 1436 1437 writerName << ") is in state " << stateName); 1437 1438 } … … 1504 1505 result = pEnum->Next(1, &rgelt, &count); 1505 1506 1506 if(result != S_OK && result != S_FALSE) 1507 if(result == S_FALSE) 1508 { 1509 // end of list, break out of the loop 1510 break; 1511 } 1512 else if(result != S_OK) 1507 1513 { 1508 1514 BOX_ERROR("VSS: Failed to enumerate snapshot: " <<
Note: See TracChangeset
for help on using the changeset viewer.
