Skip to content

Commit

Permalink
debugpb: add bottommost level compaction (#284)
Browse files Browse the repository at this point in the history
Make it more flexible for bottommost level compaction.
  • Loading branch information
huachaohuang committed Jul 11, 2018
1 parent 0d8a0dd commit 3123cb8
Show file tree
Hide file tree
Showing 10 changed files with 644 additions and 457 deletions.
248 changes: 159 additions & 89 deletions pkg/debugpb/debugpb.pb.go

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions proto/debugpb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,22 @@ message ScanMvccResponse {
kvrpcpb.MvccInfo info = 2;
}

enum BottommostLevelCompaction {
// Skip bottommost level compaction
Skip = 0;
// Force bottommost level compaction
Force = 1;
// Compact bottommost level if there is a compaction filter.
IfHaveCompactionFilter = 2;
}

message CompactRequest {
DB db = 1;
string cf = 2;
bytes from_key = 3;
bytes to_key = 4;
uint32 threads = 5;
BottommostLevelCompaction bottommost_level_compaction = 6;
}

message CompactResponse {
Expand Down
16 changes: 8 additions & 8 deletions src/coprocessor.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

815 changes: 461 additions & 354 deletions src/debugpb.rs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/errorpb.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/import_kvpb.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/import_sstpb.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/kvrpcpb.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/metapb.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/tikvpb.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3123cb8

Please sign in to comment.