mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-12 10:55:46 +02:00
Fixes #21.
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:
parent
599c786c16
commit
343dd22ce5
12 changed files with 134 additions and 37 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue