Skip to content

Commit

Permalink
db: update comment on L0StopWritesThreshold
Browse files Browse the repository at this point in the history
The current comment mentions that the threshold is used relative to L0
sublevel count only when the `Experimental.L0SublevelCompactions` option
is enabled. As of 32a5180, the L0 sublevel count is always used.

Update the comment.

Touches cockroachdb/cockroach#79956.
  • Loading branch information
nicktrav committed Apr 14, 2022
1 parent 99d8a54 commit 4e77c07
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,10 +530,8 @@ type Options struct {
// The amount of L0 read-amplification necessary to trigger an L0 compaction.
L0CompactionThreshold int

// Hard limit on L0 read-amplification. Writes are stopped when this
// threshold is reached. If Experimental.L0SublevelCompactions is enabled
// this threshold is measured against the number of L0 sublevels. Otherwise
// it is measured against the number of files in L0.
// Hard limit on L0 read-amplification, computed as the number of L0
// sublevels. Writes are stopped when this threshold is reached.
L0StopWritesThreshold int

// The maximum number of bytes for LBase. The base level is the level which
Expand Down

0 comments on commit 4e77c07

Please sign in to comment.