summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorcmumford <cmumford@google.com>2018-04-27 09:14:32 -0700
committerVictor Costan <pwnall@chromium.org>2018-04-30 15:50:26 -0700
commite7840de9f3db1a5eddedfecbbbc1ff72a4c2631a (patch)
tree7945dcfba5e846ae178325962cbeeae72896644c /doc
parentbc23e00f955eadb9e26f8ce07c1c664e7b985ff0 (diff)
downloadleveldb-e7840de9f3db1a5eddedfecbbbc1ff72a4c2631a.tar.gz
Fix documentation for log file growth.
This fixes #546 reported on GitHub. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=194549692
Diffstat (limited to 'doc')
-rw-r--r--doc/impl.md12
1 files changed, 7 insertions, 5 deletions
diff --git a/doc/impl.md b/doc/impl.md
index 6e6b2ab..cacabb9 100644
--- a/doc/impl.md
+++ b/doc/impl.md
@@ -65,12 +65,14 @@ Other files used for miscellaneous purposes may also be present (LOCK, *.dbtmp).
## Level 0
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
+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