VirtualBox

Changeset 40565 in vbox for trunk


Ignore:
Timestamp:
Mar 21, 2012 2:06:37 PM (13 years ago)
Author:
vboxsync
Message:

Main/Snapshot: fix locking problem when taking a snapshot, and when restoring a snapshot.

File:
1 edited

Legend:

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

    r40492 r40565  
    14821482            setMachineState(MachineState_Saving); /** @todo Confusing! Saving is used for both online and offline snapshots. */
    14831483
     1484        alock.release();
    14841485        /* create new differencing hard disks and attach them to this machine */
    14851486        rc = createImplicitDiffs(aConsoleProgress,
     
    14911492        // if we got this far without an error, then save the media registries
    14921493        // that got modified for the diff images
    1493         alock.release();
    14941494        mParent->saveModifiedRegistries();
    14951495    }
     
    19421942        }
    19431943
    1944         // release the locks before updating registry and deleting image files
    1945         alock.release();
    1946 
    19471944        // save machine settings, reset the modified flag and commit;
    19481945        bool fNeedsGlobalSaveSettings = false;
     
    19531950        // unconditionally add the parent registry. We do similar in SessionMachine::EndTakingSnapshot
    19541951        // (mParent->saveSettings())
     1952
     1953        // release the locks before updating registry and deleting image files
     1954        alock.release();
     1955
    19551956        mParent->markRegistryModified(mParent->getGlobalRegistryId());
    19561957
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