-
Notifications
You must be signed in to change notification settings - Fork 185
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
Remove serialization non C.41 constructors from index_read_state_from_capnp. #4670
Remove serialization non C.41 constructors from index_read_state_from_capnp. #4670
Conversation
This pull request has been linked to Shortcut Story #40051: Remove serialization non C.41 constructors from index_read_state_from_capnp.. |
*/ | ||
ReadState* read_state(); | ||
ReadState& read_state(); |
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.
Audit the code and see if the only reason we need this is because we want to update the read state. If so, let's rename to void set_read_state(...)
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.
Minor tweaks.
* Return whether the tiles that will be processed are loaded in memory. | ||
* @return Done adding result tiles. | ||
*/ | ||
const bool& done_adding_result_tiles() const { |
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.
const bool& done_adding_result_tiles() const { | |
bool done_adding_result_tiles() const { |
* @param done_adding_result_tiles Done adding result tiles. | ||
* @return void | ||
*/ | ||
inline void set_done_adding_result_tiles(bool done_adding_result_tiles) { |
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.
This should only be changed from false to true... Remove the parameter.
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.
This isn't true--this code is in sparse_index_reader_base.cc.
Status SparseIndexReaderBase::load_initial_data() {
if (initial_data_loaded_) {
return Status::Ok();
}
auto timer_se = stats_->start_timer("load_initial_data");
read_state_.set_done_adding_result_tiles(false);
Additionally, there is code where this occurs in sparse_global_order_reader.cc and sparse_unordered_with_dups_reader.cc:
read_state_.set_done_adding_result_tiles(done_adding_result_tiles);
601f451
to
a7a5909
Compare
a7a5909
to
695399f
Compare
Made index_read_state_from_capnp C41 compliant.
TYPE: NO_HISTORY
DESC: Remove serialization non C.41 constructors from index_read_state_from_capnp