Changeset 55728 in vbox for trunk/src/VBox/Main/src-server/SnapshotImpl.cpp
- Timestamp:
- May 7, 2015 1:58:38 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 100140
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/SnapshotImpl.cpp
r55698 r55728 1796 1796 task.m_pProgress->i_notifyComplete(rc); 1797 1797 1798 if (SUCCEEDED(rc)) 1799 mParent->i_onSnapshotTaken(mData->mUuid, 1800 task.m_pSnapshot->i_getId()); 1798 1801 LogFlowThisFuncLeave(); 1799 1802 } … … 1864 1867 /* associate old hard disks with the snapshot and do locking/unlocking*/ 1865 1868 i_commitMedia(task.m_fTakingSnapshotOnline); 1866 1867 /* inform callbacks */1868 mParent->i_onSnapshotTaken(mData->mUuid,1869 task.m_pSnapshot->i_getId());1870 1869 alock.release(); 1871 1870 } … … 2039 2038 2040 2039 HRESULT rc = S_OK; 2041 2042 bool stateRestored = false;2043 2040 2044 2041 try … … 2161 2158 * state accordingly no matter of the delete snapshot result */ 2162 2159 if (mSSData->strStateFilePath.isNotEmpty()) 2163 i_setMachineState(MachineState_Saved);2160 task.modifyBackedUpState(MachineState_Saved); 2164 2161 else 2165 i_setMachineState(MachineState_PoweredOff); 2166 2167 stateRestored = true; 2162 task.modifyBackedUpState(MachineState_PoweredOff); 2168 2163 2169 2164 /* Paranoia: no one must have saved the settings in the mean time. If … … 2252 2247 i_rollback(false /* aNotify */); 2253 2248 2254 if (!stateRestored)2255 {2256 /* restore the machine state */2257 i_setMachineState(task.m_machineStateBackup);2258 }2259 2249 } 2260 2250 2261 2251 mParent->i_saveModifiedRegistries(); 2252 2253 /* restore the machine state */ 2254 i_setMachineState(task.m_machineStateBackup); 2262 2255 2263 2256 /* set the result (this will try to fetch current error info on failure) */
Note:
See TracChangeset
for help on using the changeset viewer.