Skip to content

Commit

Permalink
feat(MongoInstance): remove storage engine "mmapv1"
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Jun 9, 2023
1 parent 6e38f99 commit f689bdd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions docs/api/interfaces/mongo-memory-instance-opts.md
Expand Up @@ -85,12 +85,11 @@ Only has a effect when started with [`MongoMemoryReplSet`](../classes/mongo-memo

## Helper Type `StorageEngine`

Typings: `StorageEngine = 'ephemeralForTest' | 'mmapv1' | 'wiredTiger'`
Typings: `StorageEngine = 'ephemeralForTest' | 'wiredTiger'`

Storage Engines supported by mongodb, see [MongoDB Storage Engines](https://www.mongodb.com/docs/manual/core/storage-engines/).

Custom Explanation:

- `ephemeralForTest` is a in-memory storage engine, which stores everything in RAM, which is great to use when wanting a simple database testing backend, is not the same as the Enterprise In-Memory Engine
- `mmapv1` is storage engine which stores data on disk, was removed in mongodb 4.2
- `wiredTiger` is a storage engine which stores data on disk.
4 changes: 4 additions & 0 deletions docs/guides/migration/migrate9.md
Expand Up @@ -56,6 +56,10 @@ Some error classes have been merged:
- `EnsureInstanceError` & `InstanceInfoError` -> `InstanceInfoError`
- `NoSystemBinaryFoundError` & `BinaryNotFoundError` -> `BinaryNotFoundError`

### Removed Storage engine `devnull` and `mmapv1`

Storage Engines `devnull` and `mmapv1` have been removed because they are not supported in newer versions of mongodb anymore, `wiredTiger` should be used instead.

## Non-Breaking changes / Additions

### Compiler target is now `es2019`
Expand Down
Expand Up @@ -29,7 +29,7 @@ if (lt(process.version, '14.0.0')) {

const log = debug('MongoMS:MongoInstance');

export type StorageEngine = 'ephemeralForTest' | 'mmapv1' | 'wiredTiger';
export type StorageEngine = 'ephemeralForTest' | 'wiredTiger';

/**
* Overwrite replica member-specific configuration
Expand Down

0 comments on commit f689bdd

Please sign in to comment.