Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debugpb: add bottommost level compaction #284

Merged
merged 2 commits into from
Jul 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.