-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Make EventListener into a Customizable Class #8473
Conversation
mrambacher
commented
Jun 30, 2021
- Added Type/CreateFromString
- Added ability to load EventListeners to DBOptions
- Since EventListeners did not previously have a Name(), defaulted to "". If there is no name, the listener cannot be loaded from the ObjectRegistry.
- Added Type/CreateFromString - Added ability to load EventListeners to DBOptions - Since EventListeners did not previously have a Name(), defaulted to "". If there is no name, the listener cannot be loaded from the ObjectRegistry.
@@ -433,6 +433,61 @@ static std::unordered_map<std::string, OptionTypeInfo> | |||
{offsetof(struct ImmutableDBOptions, allow_data_in_errors), | |||
OptionType::kBoolean, OptionVerificationType::kNormal, | |||
OptionTypeFlags::kNone}}, | |||
{"listeners", |
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.
Add a comment here to indicate that different EventListener can be create from an option string and also we can serialize it. It would be better to give an example of the string input and the serialized output in the comment.
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.
LGTM, may be mention that make EventListener in the Customizable class in the HISTORY.md.
@mrambacher has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
2 similar comments
@mrambacher has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@mrambacher has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@mrambacher has updated the pull request. You must reimport the pull request before landing. |
@mrambacher has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
b9aa8b0
to
b2ce708
Compare
@mrambacher has updated the pull request. You must reimport the pull request before landing. |
@mrambacher has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@mrambacher merged this pull request in 3aee4fb. |