chore: more fixes for macos (#2677)

1.Add back the search files to MacOs build (linker errors are fixed now).
2. Add default maxmemory argument (if not present already) when launching dragonfly process in regression tests.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
Roman Gershman 2024-03-02 23:14:33 +02:00 committed by GitHub
parent 9698f974ea
commit 93debc754c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 6 additions and 59 deletions

View file

@ -175,53 +175,4 @@ class ShardDocIndices {
absl::flat_hash_map<std::string, std::unique_ptr<ShardDocIndex>> indices_;
};
#if defined(__APPLE__)
inline ShardDocIndices::ShardDocIndices() : local_mr_{nullptr} {
}
inline ShardDocIndex* ShardDocIndices::GetIndex(std::string_view name) {
return nullptr;
}
inline void ShardDocIndices::InitIndex(const OpArgs& op_args, std::string_view name,
std::shared_ptr<DocIndex> index) {
}
inline bool ShardDocIndices::DropIndex(std::string_view name) {
return false;
}
inline void ShardDocIndices::RebuildAllIndices(const OpArgs& op_args) {
}
inline std::vector<std::string> ShardDocIndices::GetIndexNames() const {
return {};
}
inline void ShardDocIndices::AddDoc(std::string_view key, const DbContext& db_cnt,
const PrimeValue& pv) {
}
inline void ShardDocIndices::RemoveDoc(std::string_view key, const DbContext& db_cnt,
const PrimeValue& pv) {
}
inline size_t ShardDocIndices::GetUsedMemory() const {
return 0;
}
inline SearchStats ShardDocIndices::GetStats() const {
return {};
}
inline DocIndexInfo ShardDocIndex::GetInfo() const {
return {};
}
inline std::string DocIndexInfo::BuildRestoreCommand() const {
return {};
}
#endif // __APPLE__
} // namespace dfly