38 class OperationContext;
46 change->commit(boost::none);
71 _changes.push_back(std::unique_ptr<Change>(change));
Definition: recovery_unit_noop.h:40
virtual void setRollbackWritesDisabled()
Sets a flag that declares this RecoveryUnit will skip rolling back writes, for the duration of the cu...
Definition: recovery_unit_noop.h:77
Copyright (C) 2014 MongoDB Inc.
Definition: bson_collection_catalog_entry.cpp:38
virtual void abandonSnapshot()
If there is an open transaction, it is closed.
Definition: recovery_unit_noop.h:64
virtual void setOrderedCommit(bool orderedCommit)
Definition: recovery_unit_noop.h:83
std::shared_ptr< void > data
Definition: ephemeral_for_test_record_store_test.cpp:74
virtual void registerChange(Change *change)
The RecoveryUnit takes ownership of the change.
Definition: recovery_unit_noop.h:70
virtual void * writingPtr(void *data, size_t len)
Declare that the data at [x, x + len) is being written.
Definition: recovery_unit_noop.h:74
IndexSet::const_iterator it
Definition: ephemeral_for_test_btree_impl.cpp:458
void commitUnitOfWork() final
Marks the end of a unit of work and commits all changes registered by calls to onCommit or registerCh...
Definition: recovery_unit_noop.h:43
A RecoveryUnit is responsible for ensuring that data is persisted.
Definition: recovery_unit.h:51
std::vector< std::unique_ptr< Change > > _changes
Definition: recovery_unit_noop.h:86
void abortUnitOfWork() final
Marks the end of a unit of work and rolls back all changes registered by calls to onRollback or regis...
Definition: recovery_unit_noop.h:53
virtual bool waitUntilDurable()
Waits until all commits that happened before this call are durable in the journal.
Definition: recovery_unit_noop.h:66
A Change is an action that is registerChange()'d while a WriteUnitOfWork exists.
Definition: recovery_unit.h:281
void beginUnitOfWork(OperationContext *opCtx) final
Marks the beginning of a unit of work.
Definition: recovery_unit_noop.h:42
Definition: snapshot.h:37
virtual SnapshotId getSnapshotId() const
Gets the local SnapshotId.
Definition: recovery_unit_noop.h:79
Collection *const OperationContext *const opCtx
Definition: collection_impl.cpp:80