summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/sorted_data_interface_test_harness.h
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-39339 Remove `stdx/memory.h`ADAM David Alan Martin2019-06-101-1/+0
|
* 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-38333 Support partial indexes in BiggieSEGregory Wlodarek2018-12-031-2/+3
|
* SERVER-38328 Fix uint8_t overflow in the BiggieSE lower_bound() functionGregory Wlodarek2018-12-031-0/+4
|
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-8/+10
|
* SERVER-34798 Remove ServiceContext subclasses and use new ServiceContext in ↵Andy Schwerin2018-06-221-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | every unit test. This patch does several loosely related and surprisingly hard to separate things. 1.) Make the ServiceContext class final 2.) Create a mechanism, called ConstructorActions, for running methods on ServiceContexts immediately after they're built and immediately before they're destroyed. 3.) Introduce / improve test fixture base classes for tests, giving them fresh ServiceContext instances for each test case. There is one fixture for tests that need a storage engine and another for those that do not. 4.) Make several remaining global variables SC decorations in support of (3) 5.) Replace many MONGO_INITIALIZERS that access getGlobalServiceContext with the new constructor-actions system, which is needed for (3.) 6.) Fix up tests to use the fixtures from (3) and fix tests that silently used different service contexts in together in a technically illegal fashion that now breaks. 7.) Utilize (2) as necessary to simplify initialization of new ServiceContexts, simplifying the fixtures in (3).
* SERVER-32645 Create a shim helper framework.ADAM David Alan Martin2018-04-301-3/+1
| | | | | | | | The `MONGO_DECLARE_SHIM`, `MONGO_DEFINE_SHIM`, and `MONGO_REGISTER_SHIM` macros can be used to create specialized types which are customization and auto-registration points for late-binding functions. In some sense they work like weak-symbols; however, they also are useful for tracking dependencies upon shimmed-out implementations.
* Revert "SERVER-32645 Create a shim helper framework."Kyle Suarez2018-04-301-1/+3
| | | | This reverts commit 2227f272a7a0a3e43625cb2d4a2704e1ccb6f893.
* SERVER-32645 Create a shim helper framework.ADAM David Alan Martin2018-04-271-3/+1
| | | | | | | | The `MONGO_DECLARE_SHIM`, `MONGO_DEFINE_SHIM`, and `MONGO_REGISTER_SHIM` macros can be used to create specialized types which are customization and auto-registration points for late-binding functions. In some sense they work like weak-symbols; however, they also are useful for tracking dependencies upon shimmed-out implementations.
* SERVER-27938 Rename all OperationContext variables to opCtxMaria van Keulen2017-03-071-2/+2
| | | | | | 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-27257 Deduplicate symbol `newHarnessHelper`ADAM David Alan Martin2016-12-141-28/+5
| | | | | | | | | | | The `newHarnessHelper` function was defined by multiple test driver modules, each one specializing it to return a specific kind of storage test driver's `HarnessHelper`. The two different kinds of `HarnessHelper` class were given a common base class, and the `newHarnessHelper` function was changed to a single implementation. This new implementation returns the results of a `HarnessHelper` factory function which can be registered by a MONGO_INITIALIZER statement.
* SERVER-23905 Unify lifetime management for LockState on OperationContexts ↵Andy Schwerin2016-06-031-6/+10
| | | | | | | into OperationContext. This change also moves responsibility for registering OperationContexts to Clients into ServiceContext::makeOperationContext.
* SERVER-20906 Add a random cursor implementation for mmap_v1 storage engineCharlie Swanson2015-10-231-4/+22
|
* SERVER-18579: Clang-Format - reformat code, no comment reflowMark Benvenuto2015-06-201-80/+89
|
* SERVER-18066 Clean up unowned_ptr<T> (formerly ptr<T>)Mathias Stearn2015-05-041-10/+10
|
* SERVER-17635 Add Unittests for new parts of SDI::Cursor APIMathias Stearn2015-04-151-8/+28
|
* SERVER-17635 Improve SDI unittest helpersMathias Stearn2015-04-151-7/+34
| | | | | * Added a declaritive way to set index contents * Use std::unique_ptr throughout
* SERVER-13679 Replace DiskLoc with RecordId outside of MMAPv1Mathias Stearn2014-11-261-8/+8
| | | | | | | | | | | Operations: sed -i -e 's/\<DiskLoc\>/RecordId/g' sed -i -e 's/\<DiskLocs\>/RecordIds/g' sed -i -e 's/\<minDiskLoc\>/RecordId::min()/g' sed -i -e 's/\<maxDiskLoc\>/RecordId::max()/g' sed -i -e 's/\<getDiskLoc\>/getRecordId/g'' Changes under mmap_v1 were reverted and redone by hand as needed.
* SERVER-13679 Add record_id.h and move diskloc.h under mmap_v1Mathias Stearn2014-11-261-3/+2
|
* SERVER-13635: pass whether an index is unique or not down through ↵Eliot Horowitz2014-10-161-1/+1
| | | | SortedDataInterface
* SERVER-13635 Added tests for SortedDataInterface.Max Hirschhorn2014-10-021-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Expand set of generic SortedDataInterface tests. Includes tests for the following functions: - SortedDataInterface::dupKeyCheck - SortedDataInterface::fullValidate - SortedDataInterface::getSpaceUsedBytes - SortedDataInterface::insert - SortedDataInterface::touch - SortedDataInterface::unindex - SortedDataInterface::Cursor::getDirection - SortedDataInterface::Cursor::isEOF - SortedDataInterface::Cursor::pointsToSamePlaceAs Add tests for SortedDataInterface::Cursor::locate. Add save/restore position tests. Includes tests for the following functions: - SortedDataInterface::Cursor::restorePosition - SortedDataInterface::Cursor::savePosition Add tests for SortedDataInterface::Cursor::advanceTo. Only tests single-key indices, not those with compound keys. Closes #804 Signed-off-by: Benety Goh <benety@mongodb.com>
* SERVER-13635: make generic SortedDataInterface unit testEliot Horowitz2014-09-151-0/+54