Skip to content
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

[stm] fix regression introduced in de2d782 #17743

Merged
merged 1 commit into from Jun 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion stm/stm.ml
Expand Up @@ -2695,7 +2695,7 @@ let process_transaction ~doc ?(newtip=Stateid.fresh ()) x c =
begin match w with
| VtNow ->
(* We need to execute to get the new parsing state *)
ignore(finish ~doc:dummy_doc);
let () = observe ~doc:dummy_doc (VCS.get_branch_pos (VCS.current_branch ())) in
Copy link
Contributor

Choose a reason for hiding this comment

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

ignore (observe ...) should work for the backport

let parsing = Vernacstate.Parser.cur_state () in
(* If execution has not been put in cache, we need to save the parsing state *)
if (VCS.get_info id).state == EmptyState then VCS.set_parsing_state id parsing;
Expand Down