VirtualBox

Ignore:
Timestamp:
Dec 14, 2018 8:34:20 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
127510
Message:

Main: bugref:6913: had to revert all changes for the defect because of crashing VBoxSVC on MacOS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImplCloneVM.cpp

    r76215 r76240  
    1616 */
    1717
    18 #include <set>
    19 #include <map>
    2018#include "MachineImplCloneVM.h"
    2119
     
    732730                                          pMediumLockList,
    733731                                          NULL /* aProgress */,
    734                                           true /* aWait */,
    735                                           false /* aNotify */);
     732                                          true /* aWait */);
    736733        delete pMediumLockList;
    737734        if (FAILED(rc)) throw rc;
     
    10191016    RTCList<ComObjPtr<Medium> > newMedia;   /* All created images */
    10201017    RTCList<Utf8Str> newFiles;              /* All extra created files (save states, ...) */
    1021     std::set<ComObjPtr<Medium> > pMediumsForNotify;
    1022     std::map<Guid, DeviceType_T> uIdsForNotify;
    10231018    try
    10241019    {
     
    11581153                        /* diff image has to be used... */
    11591154                        pNewParent = pDiff;
    1160                         pMediumsForNotify.insert(pDiff->i_getParent());
    1161                         uIdsForNotify[pDiff->i_getId()] = pDiff->i_getDeviceType();
    11621155                    }
    11631156                    else
     
    12911284                                                   progress2.asOutParam(),
    12921285                                                   uSrcParentIdx,
    1293                                                    uTrgParentIdx,
    1294                                                    false /* aNotify */);
     1286                                                   uTrgParentIdx);
    12951287                        srcLock.acquire();
    12961288                        if (FAILED(rc)) throw rc;
     
    13261318                         * chain. */
    13271319                        pNewParent = pTarget;
    1328                         uIdsForNotify[pTarget->i_getId()] = pTarget->i_getDeviceType();
    13291320                    }
    13301321                }
     
    13651356                    /* diff image has to be used... */
    13661357                    pNewParent = pDiff;
    1367                     pMediumsForNotify.insert(pDiff->i_getParent());
    1368                     uIdsForNotify[pDiff->i_getId()] = pDiff->i_getDeviceType();
    13691358                }
    13701359                else
     
    15451534            const ComObjPtr<Medium> &pMedium = newMedia.at(i - 1);
    15461535            mrc = pMedium->i_deleteStorage(NULL /* aProgress */,
    1547                                            true /* aWait */,
    1548                                            false /* aNotify */);
     1536                                           true /* aWait */);
    15491537            pMedium->Close();
    15501538        }
     
    15581546        p->mParent->i_saveModifiedRegistries();
    15591547    }
    1560     else
    1561     {
    1562         for (std::map<Guid, DeviceType_T>::const_iterator it = uIdsForNotify.begin();
    1563              it != uIdsForNotify.end();
    1564              ++it)
    1565         {
    1566             p->mParent->i_onMediumRegistered(it->first, it->second, TRUE);
    1567         }
    1568         for (std::set<ComObjPtr<Medium> >::const_iterator it = pMediumsForNotify.begin();
    1569              it != pMediumsForNotify.end();
    1570              ++it)
    1571         {
    1572             if (it->isNotNull())
    1573                 p->mParent->i_onMediumConfigChanged(*it);
    1574         }
    1575     }
    15761548
    15771549    return mrc;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette