VirtualBox

Changeset 29540 in vbox


Ignore:
Timestamp:
May 17, 2010 12:37:33 PM (14 years ago)
Author:
vboxsync
Message:

Main/Snapshot: fix lock order violation when restoring a snapshot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/SnapshotImpl.cpp

    r29421 r29540  
    17031703    }
    17041704
    1705     AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    1706 
    1707     /* discard all current changes to mUserData (name, OSType etc.) (note that
    1708      * the machine is powered off, so there is no need to inform the direct
    1709      * session) */
    1710     if (mData->flModifications)
    1711         rollback(false /* aNotify */);
    1712 
    17131705    HRESULT rc = S_OK;
    17141706
     
    17181710    try
    17191711    {
     1712        AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
     1713
     1714        /* Discard all current changes to mUserData (name, OSType etc.).
     1715         * Note that the machine is powered off, so there is no need to inform
     1716         * the direct session. */
     1717        if (mData->flModifications)
     1718            rollback(false /* aNotify */);
     1719
    17201720        /* Delete the saved state file if the machine was Saved prior to this
    17211721         * operation */
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