Skip to content

Conversation

@romange
Copy link
Collaborator

@romange romange commented Dec 3, 2025

Also, fix a minor bug where script params were not flushed during
"script flush" command.

Signed-off-by: Roman Gershman [email protected]

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 1 suggestions posted.

Comment augment review to trigger a new review at any time.

string err;
Interpreter::AddResult add_res = interpreter->AddFunction(sha, script_data->body, &err);
if (add_res != Interpreter::ADD_OK) {
LOG(DFATAL) << "Error adding " << sha << " to database, err " << err;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If AddFunction fails here we only log and continue, which could lead to executing the script path without the function actually being registered. Consider returning an error or aborting the eval path early after this failure to avoid inconsistent runtime behavior.

🤖 Was this useful? React with 👍 or 👎

Also, fix a minor bug where script params were not flushed during
"script flush" command.

Signed-off-by: Roman Gershman <[email protected]>
@romange romange merged commit 2218f94 into main Dec 4, 2025
10 checks passed
@romange romange deleted the Pr4 branch December 4, 2025 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants