-
Notifications
You must be signed in to change notification settings - Fork 331
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
Dump fulltext index #2336
Dump fulltext index #2336
Conversation
Co-authored-by: writinwaters <[email protected]>
Co-authored-by: writinwaters <[email protected]>
@@ -35,6 +35,11 @@ protected: | |||
auto *memindex_tracer = InfinityContext::instance().storage()->memindex_tracer(); | |||
memindex_tracer->AddMemUsed(mem); | |||
} | |||
|
|||
void DecMemUsed(SizeT mem) { |
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.
How about change the function name to IncreaseMemoryUsage and DecreaseMemoryUsage
@@ -30,7 +30,7 @@ import index_base; | |||
import column_def; | |||
import cleanup_scanner; | |||
import chunk_index_entry; | |||
import memory_indexer; | |||
// import memory_indexer; |
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.
Remove the comment
private: | ||
// call with write lock | ||
void AddMemUsed(SizeT mem); |
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.
IncreaseMemoryUsage / DecreaseMemoryUsage
### What problem does this PR solve? Dump `MemoryIndexer` when the memory usage of the index exceeds the threshold. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [x] New Feature (non-breaking change which adds functionality) - [x] Test cases --------- Co-authored-by: writinwaters <[email protected]>
What problem does this PR solve?
Dump
MemoryIndexer
when the memory usage of the index exceeds the threshold.Type of change