-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
fix: use a new way to manage clean_handler #7648
Conversation
Signed-off-by: spacewander <[email protected]>
end | ||
|
||
local id = item.clean_handlers._id | ||
item.clean_handlers._id = item.clean_handlers._id + 1 |
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.
If item.clean_handlers._id
is nil. The result will be two because we set item.clean_handlers._id = 1
at line 62.
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.
What is the clean_handlers._id
used for?
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.
What is the
clean_handlers._id
used for?
It is used to provide id for the handlers.
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.
If
item.clean_handlers._id
is nil. The result will be two because we setitem.clean_handlers._id = 1
at line 62.
Yes. But we store the id (which is assigned before item.clean_handlers._id = item.clean_handlers._id + 1
), so the first id is still 1.
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.
If
item.clean_handlers._id
is nil. The result will be two because we setitem.clean_handlers._id = 1
at line 62.Yes. But we store the id (which is assigned before
item.clean_handlers._id = item.clean_handlers._id + 1
), so the first id is still 1.
Got it.
end | ||
|
||
local id = item.clean_handlers._id | ||
item.clean_handlers._id = item.clean_handlers._id + 1 |
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.
If
item.clean_handlers._id
is nil. The result will be two because we setitem.clean_handlers._id = 1
at line 62.Yes. But we store the id (which is assigned before
item.clean_handlers._id = item.clean_handlers._id + 1
), so the first id is still 1.
Got it.
Signed-off-by: spacewander [email protected]
Description
Fixes #7633
Checklist