mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
fix: fix passing scripts (#1170)
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
This commit is contained in:
parent
c2af5b0de1
commit
0bfca475cd
1 changed files with 4 additions and 1 deletions
|
@ -430,7 +430,10 @@ void DflyCmd::FullSyncFb(FlowInfo* flow, Context* cntx) {
|
|||
auto scripts = sf_->script_mgr()->GetAll();
|
||||
StringVec script_bodies;
|
||||
for (auto& [sha, data] : scripts) {
|
||||
script_bodies.push_back(move(data.orig_body));
|
||||
// Always send original body (with header & without auto async calls) that determines the sha,
|
||||
// It's stored only if it's different from the post-processed version.
|
||||
string& body = data.orig_body.empty() ? data.body : data.orig_body;
|
||||
script_bodies.push_back(move(body));
|
||||
}
|
||||
ec = saver->SaveHeader(script_bodies);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue