-
Notifications
You must be signed in to change notification settings - Fork 210
Add TableEvictType & TableReader::ForceEvict #175
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
base: dev.1.4
Are you sure you want to change the base?
Conversation
|
9104e02 to
3ddc482
Compare
8f154e5 to
4bddc46
Compare
dd272aa to
d8fe7a5
Compare
Fix db_bench
73e1134 to
599010d
Compare
599010d to
6ed45ab
Compare
table/block_based_table_reader.cc
Outdated
| iiter.reset(); | ||
|
|
||
| // IndexBlock | ||
| do_evict(rep_->dummy_index_reader_offset); |
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.
对于partitioned index,如果其CacheDependencies了,好像这些Dependencies没处理?
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.
是的,DataBlock 是大头,先清理了,这部分还要再看看怎么搞
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.
updated
| bool (*callback_func)(void* arg, const Slice& key, | ||
| LazyBuffer&& value)); | ||
|
|
||
| virtual Status ForceEvict() { return Status::NotSupported(); } |
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.
Do you think we should comment on all virtual functions like others in this file? So we could understand what is the purposes of this ForceEvict() without reading through the callstack.
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.
updated
tools/db_bench_tool.cc
Outdated
|
|
||
| DEFINE_int32(compaction_readahead_size, 0, "Compaction readahead size"); | ||
|
|
||
| DEFINE_int32(table_evict_type, 0, "Table evict type"); |
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.
Maybe we should provide a description of the potential options 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.
updated
ee337bb to
b382632
Compare
b382632 to
7035f41
Compare
248ba01 to
363f0e5
Compare
Fix close db slowly when force evict disabled
b8f14cd to
3e98c11
Compare
3e98c11 to
ae369bf
Compare
No description provided.