Skip to content

Commit

Permalink
tool: implement 04efab2 in proper place to avoid generate staleness
Browse files Browse the repository at this point in the history
04efab2 added pretty-printed keys to the LSM visualization tool. It did
this by updating a generated file. This commit updates the file that generates
that file instead.

Release note: None.
  • Loading branch information
joshimhoff committed Mar 9, 2023
1 parent 1c38c4c commit 5c8e76f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tool/data/lsm.js
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,6 @@ let version = {
}
}

// TODO(peter): display smallest/largest key.
reason.text(
"[" +
this.levelsInfo[i].levelString +
Expand All @@ -620,6 +619,11 @@ let version = {
humanize(data.Files[fileNum].Size) +
")" +
overlapInfo +
" <" +
data.Keys[data.Files[fileNum].Smallest].Pretty +
", " +
data.Keys[data.Files[fileNum].Largest].Pretty +
">" +
"]"
);

Expand Down

0 comments on commit 5c8e76f

Please sign in to comment.