1. Snapshot now passed db index and rdb save handles by inserting select opcodes when needed.
2. Fix few more bugs in CVCUponInsert.
3. Save lua scripts.
This commit is contained in:
Roman Gershman 2022-05-20 23:25:41 +03:00
parent 599c786c16
commit 343dd22ce5
12 changed files with 134 additions and 37 deletions

View file

@ -109,4 +109,16 @@ const char* ScriptMgr::Find(std::string_view sha) const {
return it->second.get();
}
vector<string> ScriptMgr::GetLuaScripts() const {
vector<string> res;
lock_guard lk(mu_);
res.reserve(db_.size());
for (const auto& k_v : db_) {
res.emplace_back(k_v.second.get());
}
return res;
}
} // namespace dfly