VirtualBox

Changeset 35915 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Feb 9, 2011 3:04:32 PM (14 years ago)
Author:
vboxsync
Message:

Main: fix broken snapshots when disk images are shared between several machines

Location:
trunk/src/VBox/Main/src-server
Files:
2 edited

Legend:

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

    r35903 r35915  
    62086208    bool fGenerateUuid = false;
    62096209
    6210     GuidList llRegistriesThatNeedSaving;
     6210    GuidList llRegistriesThatNeedSaving;        // gets copied to task pointer later in synchronous mode
    62116211
    62126212    try
  • trunk/src/VBox/Main/src-server/SnapshotImpl.cpp

    r35903 r35915  
    14891489                               vrc);
    14901490        }
     1491
     1492        // if we got this far without an error, then save the media registries
     1493        // that got modified for the diff images
     1494        alock.release();
     1495        mParent->saveRegistries(llRegistriesThatNeedSaving);
    14911496    }
    14921497    catch (HRESULT hrc)
     
    15141519    else
    15151520        *aStateFilePath = NULL;
    1516 
    1517     // @todo r=dj normally we would need to save the settings if fNeedsGlobalSaveSettings was set to true,
    1518     // but since we have no error handling that cleans up the diff image that might have gotten created,
    1519     // there's no point in saving the disk registry at this point either... this needs fixing.
    15201521
    15211522    LogFlowThisFunc(("LEAVE - %Rhrc [%s]\n", rc, Global::stringifyMachineState(mData->mMachineState) ));
Note: See TracChangeset for help on using the changeset viewer.

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