diff options
| author | Wladimir J. van der Laan <[email protected]> | 2020-01-28 16:59:07 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2020-01-28 16:59:07 +0100 |
| commit | 20a6babfa9a66f5432ef19c6c433b4357560f853 (patch) | |
| tree | 0834cbc4054d41dfb8de5ec90143b4415adbc41d /src/leveldb/doc/impl.md | |
| parent | Merge #18010: test: rename test suite name "tx_validationcache_tests" to matc... (diff) | |
| parent | Squashed 'src/leveldb/' changes from f545dfabff4c2e9836efed094dba99a34fbc6b88... (diff) | |
| download | discoin-20a6babfa9a66f5432ef19c6c433b4357560f853.tar.xz discoin-20a6babfa9a66f5432ef19c6c433b4357560f853.zip | |
Update to leveldb upstream using subtree merge
Diffstat (limited to 'src/leveldb/doc/impl.md')
| -rw-r--r-- | src/leveldb/doc/impl.md | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/leveldb/doc/impl.md b/src/leveldb/doc/impl.md index 4b13f2a6b..cacabb96f 100644 --- a/src/leveldb/doc/impl.md +++ b/src/leveldb/doc/impl.md @@ -64,13 +64,15 @@ Other files used for miscellaneous purposes may also be present (LOCK, *.dbtmp). ## Level 0 -When the log file grows above a certain size (1MB by default): -Create a brand new memtable and log file and direct future updates here +When the log file grows above a certain size (4MB by default): +Create a brand new memtable and log file and direct future updates here. + In the background: -Write the contents of the previous memtable to an sstable -Discard the memtable -Delete the old log file and the old memtable -Add the new sstable to the young (level-0) level. + +1. Write the contents of the previous memtable to an sstable. +2. Discard the memtable. +3. Delete the old log file and the old memtable. +4. Add the new sstable to the young (level-0) level. ## Compactions |