Skip to content

Commit

Permalink
Fix documentation for log file growth.
Browse files Browse the repository at this point in the history
This fixes google#546 reported on GitHub.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=194549692
  • Loading branch information
cmumford authored and pwnall committed Apr 30, 2018
1 parent bc23e00 commit e7840de
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions doc/impl.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e7840de

Please sign in to comment.