-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Integrate blob file writing with the flush logic #7345
Changes from all commits
eebe29b
dd6eee4
312d430
3b88847
f65eba1
f4bc1f1
c603093
54eda60
6692a9b
a9a6ccf
c48f12e
db2dfed
575a70e
d1f6d47
b0b036c
40068be
d5247c8
bcf31b5
1cc9f54
a328822
37c6447
27eaa3e
3f5f021
358258b
a6d24e1
55bb048
8152e5e
7f18644
3f3bd3e
d2d5a21
3ad0d9f
6c94527
6f0f59e
bffe597
c422f81
404edc5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ class BlobFileBuilder { | |
const std::string& column_family_name, | ||
Env::IOPriority io_priority, | ||
Env::WriteLifeTimeHint write_hint, | ||
std::vector<std::string>* blob_file_paths, | ||
std::vector<BlobFileAddition>* blob_file_additions); | ||
|
||
BlobFileBuilder(std::function<uint64_t()> file_number_generator, Env* env, | ||
|
@@ -47,6 +48,7 @@ class BlobFileBuilder { | |
const std::string& column_family_name, | ||
Env::IOPriority io_priority, | ||
Env::WriteLifeTimeHint write_hint, | ||
std::vector<std::string>* blob_file_paths, | ||
std::vector<BlobFileAddition>* blob_file_additions); | ||
|
||
BlobFileBuilder(const BlobFileBuilder&) = delete; | ||
|
@@ -79,6 +81,7 @@ class BlobFileBuilder { | |
std::string column_family_name_; | ||
Env::IOPriority io_priority_; | ||
Env::WriteLifeTimeHint write_hint_; | ||
std::vector<std::string>* blob_file_paths_; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: since we assert There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reason I didn't make these members is that they outlive |
||
std::vector<BlobFileAddition>* blob_file_additions_; | ||
std::unique_ptr<BlobLogWriter> writer_; | ||
uint64_t blob_count_; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also assert
blob_file_paths_.empty()
? Is there a case when it is not empty here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, will add another assertion to that effect.