Skip to content
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

[GAIAPLAT-1752] INDEX: eliminate memory allocation when garbage collecting offsets #1124

Merged
merged 10 commits into from
Dec 20, 2021
3 changes: 1 addition & 2 deletions production/db/core/inc/db_internal_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include "gaia_internal/db/db_object.hpp"
#include "gaia_internal/db/db_types.hpp"

#include "base_index.hpp"
#include "memory_types.hpp"

namespace gaia
Expand Down Expand Up @@ -197,7 +196,7 @@ struct id_index_t
// These are types meant to access index types from the client/server.
namespace index
{

class base_index_t;
typedef std::shared_ptr<base_index_t> db_index_t;
typedef std::unordered_map<common::gaia_id_t, db_index_t> indexes_t;

Expand Down
2 changes: 1 addition & 1 deletion production/db/core/src/db_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ void server_t::init_indexes()

for (const auto& index : catalog_core_t::list_indexes(type_record_id))
{
index::index_builder_t::populate_index(index.id(), obj->type, locator);
index::index_builder_t::populate_index(index.id(), locator);
}
}
}
Expand Down
Loading