-
Notifications
You must be signed in to change notification settings - Fork 257
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
rados: implement rados_getaddrs #1037
Conversation
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.
See below for a small 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.
One request, and a pair of thoughts.
@phlogistonjohn I've fixed the comment. @anoopcs9 so I should remove the preview build tag? In the docs it says all new APIs must have 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.
@anoopcs9 so I should remove the preview build tag? In the docs it says all new APIs must have it.
You just have to drop the second variant for defining build constraint.
docs/api-status.json
Outdated
}, | ||
{ | ||
"name": "Conn.GetAddrs", | ||
"comment": "GetAddrs wraps the function to get the addresses of\nthe RADOS session, suitable for blocklisting.\n\nImplements:\n\n\tint rados_getaddrs(rados_t cluster, char **addrs)\n", |
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.
This generated JSON needs to be updated now that the code comment is changed. Try using git to revert the change to just this file and then re-run the make command to regenerate the JSON. (then squash it all back together :-) )
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 you need more instruction on all that feel free to ask.
There seems to be a newer version of protobuf(and protobuf-compiler) causing update issues with |
It's not a required check so we have the option of trying to fix it and then asking @gman0 to rebase or just ignoring the failure for this PR. I will look into fixing it now... but if it proves tricky we can skip it. |
squid workaround in #1038 |
Pull request has been modified.
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.
@Mergifyio rebase |
This commit implements binding for rados_getaddrs. Includes a unit test. Signed-off-by: Robert Vasek <[email protected]>
✅ Branch has been successfully rebased |
8fdfcab
to
5c95766
Compare
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
This PR implements binding for rados_getaddrs.
Includes a unit test.
Checklist
//go:build ceph_preview
make api-update
to record new APIs