-
Notifications
You must be signed in to change notification settings - Fork 990
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
chore: WrapSds from family_utils.h #3818
Conversation
if (blocking_controller) { | ||
blocking_controller->AwakeWatched(op_args.db_cntx.db_index, key); | ||
} | ||
raxRemove(cgr_res->s->cgroups, (uint8_t*)(gname.data()), gname.size(), NULL); |
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.
Check cg?
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.
ping here? Did you validate that based on the code cgr_res->cg
is always defined here?
Please add DCHECK before raxRemove
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.
ah I see now why, nm
consumer = streamCreateConsumer(cgr_res->cg, op_args.shard->tmp_str1, nullptr, 0, | ||
SCC_NO_NOTIFY | SCC_NO_DIRTIFY); | ||
auto cname = WrapSds(opts.consumer); | ||
if ((consumer = streamLookupConsumer(cgr_res->cg, cname, SLC_NO_REFRESH)) == nullptr) { |
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.
nit: i personally do not like these double level expressions.
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.
Not me who introduced it ☝🏻
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.
👏🏼 👏🏼 👏🏼 Very Nice!
Co-authored-by: Kostas Kyrimis <[email protected]> Signed-off-by: Roman Gershman <[email protected]>
Signed-off-by: Kostas Kyrimis <[email protected]>
Remove some of the c'stlye code