Skip to content

re2: fix mark deduplication flag in Workq::mark()#612

Open
MarkLee131 wants to merge 1 commit intogoogle:mainfrom
MarkLee131:fix/workq-mark-dedup
Open

re2: fix mark deduplication flag in Workq::mark()#612
MarkLee131 wants to merge 1 commit intogoogle:mainfrom
MarkLee131:fix/workq-mark-dedup

Conversation

@MarkLee131
Copy link
Copy Markdown

Fix #611:

Workq::mark() sets last_was_mark_ to false after inserting a mark. It should set it to true so that a subsequent call to mark() without an intervening insert() is correctly deduplicated.

This is a correctness bug that affects longest-match mode. Duplicate marks can cause incorrect match priority ordering.

Workq::mark() sets last_was_mark_ to false after inserting a mark.
It should set it to true so that a subsequent call to mark() without
an intervening insert() is correctly deduplicated.

This is a correctness bug that affects longest-match mode. Duplicate
marks can cause incorrect match priority ordering.
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.

Bug: Workq::mark() sets last_was_mark_ to false instead of true

1 participant