mirror of
https://github.com/typesense/typesense.git
synced 2025-05-25 08:17:38 +08:00
Address valgrind warnings.
This commit is contained in:
parent
4e3307a891
commit
e5812cc9db
@ -1144,6 +1144,7 @@ uint32_t Index::do_filtering(uint32_t** filter_ids_out, const std::vector<filter
|
||||
}
|
||||
|
||||
result_ids_len = result_to_distance.size();
|
||||
delete [] temp_ids;
|
||||
|
||||
} else if(f.is_string()) {
|
||||
art_tree* t = search_index.at(a_filter.field_name);
|
||||
|
@ -424,8 +424,8 @@ TEST_F(CollectionManagerTest, Symlinking) {
|
||||
CollectionManager & cmanager = CollectionManager::get_instance();
|
||||
std::string state_dir_path = "/tmp/typesense_test/cmanager_test_db";
|
||||
system(("rm -rf "+state_dir_path+" && mkdir -p "+state_dir_path).c_str());
|
||||
Store *store = new Store(state_dir_path);
|
||||
cmanager.init(store, 1.0, "auth_key");
|
||||
Store *new_store = new Store(state_dir_path);
|
||||
cmanager.init(new_store, 1.0, "auth_key");
|
||||
cmanager.load();
|
||||
|
||||
// try resolving on a blank slate
|
||||
@ -514,6 +514,8 @@ TEST_F(CollectionManagerTest, Symlinking) {
|
||||
collection_option = cmanager2.resolve_symlink("company_3");
|
||||
ASSERT_TRUE(collection_option.ok());
|
||||
ASSERT_EQ("company_2020", collection_option.get());
|
||||
|
||||
delete new_store;
|
||||
}
|
||||
|
||||
TEST_F(CollectionManagerTest, ParseSortByClause) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user