-
Notifications
You must be signed in to change notification settings - Fork 998
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
feat(server): add latency statistics for lua script calls #758
Conversation
c86a766
to
3fbd436
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You missed a few moves here and there when passing the scripts around 👀 , but I assume its not important at all
can you detail what I missed? :)
…On Sun, Feb 5, 2023 at 5:37 PM Vladislav ***@***.***> wrote:
***@***.**** approved this pull request.
You missed a few moves here and there when passing the scripts around 👀
, but I assume its not important at all
—
Reply to this email directly, view it on GitHub
<#758 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4BFCBEUGIM6KFNKCD6IBDWV7CKLANCNFSM6AAAAAAURXEAK4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
src/server/dflycmd.cc
Outdated
auto scripts = sf_->script_mgr()->GetLuaScripts(); | ||
ec = saver->SaveHeader(scripts); | ||
StringVec script_bodies; | ||
for (const auto& script : scripts) { | ||
script_bodies.push_back(script.second); | ||
} | ||
ec = saver->SaveHeader(script_bodies); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You get the scripts by value here and proceed to build a new container by copying the scripts itself
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
src/server/server_family.cc
Outdated
auto scripts = script_mgr_->GetLuaScripts(); | ||
StringVec script_bodies; | ||
for (const auto& script : scripts) { | ||
script_bodies.push_back(script.second); | ||
} | ||
return script_bodies; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Also provide new subcommands "script list" and "script latency" Fixes #754 Signed-off-by: Roman Gershman <[email protected]>
3fbd436
to
3635858
Compare
Also provide new subcommands "script list" and "script latency" Fixes #754
Signed-off-by: Roman Gershman [email protected]