-
Notifications
You must be signed in to change notification settings - Fork 343
Fix memory index multiple bugs when using vfs #1561
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
Conversation
PersistenceManager *pm = InfinityContext::instance().persistence_manager(); | ||
String posting_file = posting_file_; | ||
if (nullptr != pm) { | ||
posting_file = pm->GetObjCache(posting_file); |
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.
Why GetObjCache
is needed here?
src/unit_test/base_test.h
Outdated
@@ -44,6 +44,9 @@ class BaseTestWithParam : public std::conditional_t<std::is_same_v<T, void>, ::t | |||
|
|||
void SetUp() override {} | |||
void TearDown() override {} | |||
public: | |||
static constexpr const char* NULL_CONFIG_PATH = ""; | |||
static constexpr const char* CONFIG_PATH = "test/data/config/test_vfs.toml"; |
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.
VFS_CONFIG_PATH
looks better.
) | ||
); | ||
|
||
TEST_P(MemoryIndexerTest, Insert) { |
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.
Can we check if persistence_manager is clean at the end of the test?
What problem does this PR solve?
Type of change