Changeset 98352 in vbox for trunk/src/VBox/Main/src-server/SnapshotImpl.cpp
- Timestamp:
- Jan 30, 2023 7:44:51 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/SnapshotImpl.cpp
r98292 r98352 1763 1763 BOOL fSuspendedBySave = FALSE; 1764 1764 1765 std::set<ComObjPtr<Medium> > pMedi umsForNotify;1765 std::set<ComObjPtr<Medium> > pMediaForNotify; 1766 1766 std::map<Guid, DeviceType_T> uIdsForNotify; 1767 1767 … … 1949 1949 if (!fFound) 1950 1950 { 1951 pMedi umsForNotify.insert(pMedium->i_getParent());1951 pMediaForNotify.insert(pMedium->i_getParent()); 1952 1952 uIdsForNotify[pMedium->i_getId()] = pMedium->i_getDeviceType(); 1953 1953 } … … 2065 2065 } 2066 2066 2067 for (std::set<ComObjPtr<Medium> >::const_iterator it = pMedi umsForNotify.begin();2068 it != pMedi umsForNotify.end();2067 for (std::set<ComObjPtr<Medium> >::const_iterator it = pMediaForNotify.begin(); 2068 it != pMediaForNotify.end(); 2069 2069 ++it) 2070 2070 { … … 2329 2329 HRESULT hrc = S_OK; 2330 2330 Guid snapshotId; 2331 std::set<ComObjPtr<Medium> > pMedi umsForNotify;2331 std::set<ComObjPtr<Medium> > pMediaForNotify; 2332 2332 std::map<Guid, std::pair<DeviceType_T, BOOL> > uIdsForNotify; 2333 2333 … … 2461 2461 if (!fFound) 2462 2462 { 2463 pMedi umsForNotify.insert(pMedium->i_getParent());2463 pMediaForNotify.insert(pMedium->i_getParent()); 2464 2464 uIdsForNotify[pMedium->i_getId()] = std::pair<DeviceType_T, BOOL>(pMedium->i_getDeviceType(), TRUE); 2465 2465 } … … 2571 2571 if (SUCCEEDED(hrc2)) 2572 2572 { 2573 pMedi umsForNotify.insert(pParent);2573 pMediaForNotify.insert(pParent); 2574 2574 uIdsForNotify[id] = std::pair<DeviceType_T, BOOL>(pMedium->i_getDeviceType(), FALSE); 2575 2575 pMedium->uninit(); … … 2609 2609 mParent->i_onMediumRegistered(it->first, it->second.first, it->second.second); 2610 2610 } 2611 for (std::set<ComObjPtr<Medium> >::const_iterator it = pMedi umsForNotify.begin();2612 it != pMedi umsForNotify.end();2611 for (std::set<ComObjPtr<Medium> >::const_iterator it = pMediaForNotify.begin(); 2612 it != pMediaForNotify.end(); 2613 2613 ++it) 2614 2614 { … … 2972 2972 MediumDeleteRecList toDelete; 2973 2973 Guid snapshotId; 2974 std::set<ComObjPtr<Medium> > pMedi umsForNotify;2974 std::set<ComObjPtr<Medium> > pMediaForNotify; 2975 2975 std::map<Guid,DeviceType_T> uIdsForNotify; 2976 2976 … … 3345 3345 throw hrc; 3346 3346 3347 pMedi umsForNotify.insert(pParent);3347 pMediaForNotify.insert(pParent); 3348 3348 uIdsForNotify[uMedium] = uMediumType; 3349 3349 … … 3356 3356 { 3357 3357 //store ids before merging for notify 3358 pMedi umsForNotify.insert(it->mpTarget);3358 pMediaForNotify.insert(it->mpTarget); 3359 3359 if (it->mfMergeForward) 3360 pMedi umsForNotify.insert(it->mpSource->i_getParent());3360 pMediaForNotify.insert(it->mpSource->i_getParent()); 3361 3361 else 3362 3362 { … … 3366 3366 ++iit) 3367 3367 { 3368 pMedi umsForNotify.insert(*iit);3368 pMediaForNotify.insert(*iit); 3369 3369 } 3370 3370 } … … 3605 3605 mParent->i_onMediumRegistered(it->first, it->second, FALSE); 3606 3606 } 3607 for (std::set<ComObjPtr<Medium> >::const_iterator it = pMedi umsForNotify.begin();3608 it != pMedi umsForNotify.end();3607 for (std::set<ComObjPtr<Medium> >::const_iterator it = pMediaForNotify.begin(); 3608 it != pMediaForNotify.end(); 3609 3609 ++it) 3610 3610 {
Note:
See TracChangeset
for help on using the changeset viewer.