Changeset 26171 in vbox for trunk/src/VBox/Main/MediumAttachmentImpl.cpp
- Timestamp:
- Feb 2, 2010 8:37:36 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57185
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MediumAttachmentImpl.cpp
r26167 r26171 44 44 { } 45 45 46 bool operator==(const BackupableMediumAttachmentData &that) const47 {48 return this == &that49 || (fPassthrough == that.fPassthrough);50 }51 52 46 ComObjPtr<Medium> pMedium; 53 47 /* Since MediumAttachment is not a first class citizen when it … … 282 276 * @note Locks this object for writing. 283 277 */ 284 boolMediumAttachment::rollback()278 void MediumAttachment::rollback() 285 279 { 286 280 LogFlowThisFunc(("ENTER - %s\n", getLogName())); … … 288 282 /* sanity */ 289 283 AutoCaller autoCaller(this); 290 AssertComRCReturn (autoCaller.rc(), false);284 AssertComRCReturnVoid(autoCaller.rc()); 291 285 292 286 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 293 287 294 bool changed = false; 295 296 if (m->bd.isBackedUp()) 297 { 298 /* we need to check all data to see whether anything will be changed 299 * after rollback */ 300 changed = m->bd.hasActualChanges(); 301 m->bd.rollback(); 302 } 303 304 LogFlowThisFunc(("LEAVE - %s - returning %RTbool\n", getLogName(), changed)); 305 return changed; 288 m->bd.rollback(); 289 290 LogFlowThisFunc(("LEAVE - %s\n", getLogName())); 306 291 } 307 292
Note:
See TracChangeset
for help on using the changeset viewer.