summaryrefslogtreecommitdiff
path: root/src/mongo/db/write_concern.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-48149 Move callers of RecoveryUnit::waitUntilDurable onto ↵Dianna Hohensee2020-08-281-3/+3
| | | | | | | | JournalFlusher::waitForJournalFlush Operations running concurrently with stepdown must call JournalFlusher::waitForJournalFlush so that writes to the oplogTruncateAfterPoint are interrupted correctly during stepdown and callers waiting for durability don't receive unexpected InterruptedDueToReplStateChange errors.
* SERVER-47735 change mongo source over to logv2Billy Donahue2020-04-261-1/+1
| | | | | | - Remove several legacy logger/ files - Convert all MONGO_LOG_DEFAULT_COMPONENT to the LOGV2 version. - Globally replace logger::{LogSeverity,LogComponent} => logv2::
* SERVER-47040 LOGV2_FATAL also fassertsHenrik Edin2020-03-241-2/+1
| | | | Added LOGV2_FATAL_NOTRACE and LOGV2_CONTINUE to have different behavior.
* SERVER-47043 Read concern set to default when it should be localMarcos José Grillo Ramírez2020-03-241-2/+3
|
* SERVER-45847 Pull JournalFlusher thread out of WT and place it above the ↵Dianna Hohensee2020-03-171-2/+3
| | | | | | | | | | | | storage engine layer. Creating a new storage/control/ directory that contains StorageControl to handle manipulation of independent processes performing actions against the storage engine for higher level code layers. create mode 100644 src/mongo/db/storage/control/journal_flusher.cpp create mode 100644 src/mongo/db/storage/control/journal_flusher.h create mode 100644 src/mongo/db/storage/control/storage_control.cpp create mode 100644 src/mongo/db/storage/control/storage_control.h
* SERVER-46186 Single voter replica set primaries for {j: true} writeConcern ↵Dianna Hohensee2020-02-271-0/+29
| | | | writes will wait for earlier writes to become visible before flushing the journal to disk to ensure user confirmed writes are never truncated during recovery after a crash.
* SERVER-44555 Replicate Before JournalingDianna Hohensee2020-02-271-20/+26
|
* SERVER-44978 Remove accidentally added usage of getGlobalServiceContext() ↵Kaloian Manassiev2020-02-261-3/+3
| | | | from ReadWriteConcernDefaults
* SERVER-46297 make all primary durable timestamp updates go through the ↵Dianna Hohensee2020-02-221-9/+0
| | | | journal listener
* SERVER-45567 removing util/log.h where I canGabriel Russell2020-02-211-1/+0
| | | | | | | o converting some log lines that were missed o fixing some missing includes create mode 100644 src/mongo/transport/ismaster_metrics.cpp
* SERVER-45623 improve diagnosability of default writeConcernKevin Pulo2020-02-201-2/+21
| | | | | - Include the writeConcern in writeConcernErrors - Add serverStatus counters for default writeConcern timeouts and unsatisfiability
* SERVER-45623 read/write concern provenanceKevin Pulo2020-02-161-4/+28
|
* SERVER-45869 automatically converted structured loggingGabriel Russell2020-02-131-5/+14
|
* SERVER-46067 Replicate Before Journaling interface changesDianna Hohensee2020-02-121-6/+5
| | | | | | | | | flushAllFiles takes callerHoldsReadLock in order to skip taking a write lock to update the truncate point. waitUntilDurable takes skipJournalListenerUpdate to know to skip updating the truncate point. getToken takes a defer_lock and opCtx so collection locks can be locked prior to locking the mutex. Remove inactive 'async' field from fsync command. Put explicit dummy value for inactive (since MMAP) 'numFiles' result field in fsync command. Put explicit dummy value for inactive (since MMAP) 'fsyncFiles' result field in write concern.
* SERVER-46095 Must wrap WriteConcernOptions::SyncMode::JOURNAL w/ ↵Dianna Hohensee2020-02-121-0/+9
| | | | repl::ReplicationCoordinator::Mode::modeReplSet waitForWriteConcern specially with DurableTimestsamp updates for inMemory engine.
* SERVER-45665 Make JournalFlusher flush on command and waitForWriteConcern ↵Dianna Hohensee2020-02-051-10/+2
| | | | | | asynchronously call waitUntilDurable through the JournalFlusher. Making waitForWriteConcern asynchronously call waitUntilDurable is a performance gain.
* SERVER-45098 test that RWC defaults are correctly applied to commandsKevin Pulo2020-01-161-1/+4
|
* SERVER-45476 Don't consider applying RWC defaults on standalonesKevin Pulo2020-01-151-0/+1
|
* SERVER-44538 Add read/write concern fields to logging/profilingKevin Pulo2019-12-201-2/+23
|
* SERVER-43713 SERVER-43715 Create DistCache abstraction, use it in ↵Kevin Pulo2019-12-091-1/+1
| | | | ReadWriteConcernDefaults
* SERVER-43126 Basic replset CWRWC passthrough suitesKevin Pulo2019-11-261-0/+2
|
* SERVER-43123 SERVER-43124 Use ReadWriteConcernDefaults for incoming mongod ↵Kevin Pulo2019-10-211-4/+18
| | | | requests
* SERVER-43769: Only get the default write concern from ReplSetConfig if no ↵Lingzhi Deng2019-10-051-2/+12
| | | | write concern is specified
* SERVER-43317 merge failpoint headers. Rewrite docs.Billy Donahue2019-10-031-1/+1
| | | | iterate docs
* SERVER-43252: Only compute WriteConcernResult.writtenTo for CmdGetLastErrorLingzhi Deng2019-10-031-6/+1
|
* SERVER-43119 FailPoint cleanupBilly Donahue2019-09-101-1/+1
| | | | | | | | | | | - Don't use MONGO_INITIALIZER to declare each fail point. We only need one init task in total: freeze and iterate the registry. - remove MONGO_FAIL_POINT_DECLARE macro (extern) - remove MONGO_FAIL_POINT_SHOULD_FAIL macro (FailPoint::shouldFail) - remove MONGO_FAIL_POINT_BLOCK_IF (FailPoint::executeIf) - remove MONGO_FAIL_POINT_BLOCK (FailPoint::execute) - clean up FailPointRegistry and fail_point_service implementation.
* SERVER-42221 Add concurrency control to checkpoint requests and expose it to ↵Dianna Hohensee2019-08-231-3/+3
| | | | the validation cmd code layer
* SERVER-41772 Apply clang-format 7.0.1 to the codebaseclang-format-7.0.12019-07-271-1/+1
|
* SERVER-40228 Refactor OpTimeAndWallTime into new structMaria van Keulen2019-03-211-0/+1
|
* SERVER-40080 report last applied and last durable wall clock timesMaria van Keulen2019-03-191-2/+2
|
* SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue2019-02-131-1/+0
| | | | | | Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
* SERVER-38978 coordinateCommitTransaction should send abortTransaction over ↵Esha Maharishi2019-01-241-1/+2
| | | | the loopback
* SERVER-37856 Fix coverity analysis defect 105090: Wrong operator usedEsha Maharishi2018-12-051-3/+3
|
* SERVER-34212 Config servers should only upconvert writeConcern to majority ↵Esha Maharishi2018-10-221-8/+8
| | | | for requests on internal connections
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-8/+10
|
* SERVER-35275 rename fail point FP macros, improve docsBilly Donahue2018-05-301-1/+1
|
* SERVER-34751 Replace getGlobalStorageEngine cals with getStorageEngine.Andy Schwerin2018-05-031-2/+2
|
* SERVER-33355 Support readConcern level snapshot reads on secondariesJames Wahlin2018-03-031-7/+4
|
* SERVER-29519 Remove getGlobalReplicationCoordinator. Replace when getting ↵Nick Zolnierz2018-03-021-1/+1
| | | | | | decoration through service context (global if needed). This reverts commit a8fddd07a740e959646995ef93139887b3b3eb5c.
* Revert "SERVER-29519 Remove getGlobalReplicationCoordinator. Replace when ↵Nick Zolnierz2018-03-021-1/+1
| | | | | | getting decoration through service context (global if needed)." This reverts commit 7d37a75df3f6035a7afcb51123b88f0e99308fc8.
* SERVER-29519 Remove getGlobalReplicationCoordinator. Replace when getting ↵Henrik Edin2018-03-021-1/+1
| | | | decoration through service context (global if needed).
* SERVER-31184 Cleanup usages of global service context objectsKaloian Manassiev2017-10-101-4/+5
| | | | Also cleans up some formatting, no functional changes.
* SERVER-28269 Set _canAcceptNonLocalWrites at the end of signalDrainComplete()Matthew Russotto2017-09-061-1/+4
|
* SERVER-28641 remove requirement that non-internal writes against config ↵Esha Maharishi2017-04-061-15/+0
| | | | servers must use writeConcern 'majority'
* SERVER-27938 Rename all OperationContext variables to opCtxMaria van Keulen2017-03-071-15/+15
| | | | | | This commit is an automated rename of all whole word instances of txn, _txn, and txnPtr to opCtx, _opCtx, and opCtxPtr, respectively in all .cpp and .h files in src/mongo.
* SERVER-18410: Replace RWLock with OperationContext/LockManagerDaniel Gottlieb2017-03-021-1/+1
|
* revert "SERVER-18410: Replace RWLock with OperationContext/LockManager"Daniel Gottlieb2017-02-261-1/+1
| | | | This reverts commit 9c9bbf3318113cfdd4d9b72f493b6ebd23f1837e.
* SERVER-18410: Replace RWLock with OperationContext/LockManagerDaniel Gottlieb2017-02-241-1/+1
|
* SERVER-27176 Improve performance of command writeConcern parsingJames Wahlin2016-12-061-8/+6
|
* SERVER-27053 Don't acknowledge writes if the term has changed.Spencer T Brody2016-11-171-0/+5
|