-
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
rbd: add ErrExists as standard error #1027
Conversation
CI jobs fail with something completely unrelated:
|
Recently released revive v1.4.0 checks function related variables for |
@Mergifyio rebase |
✅ Branch has been successfully rebased |
ea56b18
to
9cad79a
Compare
rbd/errors.go
Outdated
@@ -73,6 +73,8 @@ var ( | |||
|
|||
// Public general error | |||
const ( | |||
// ErrExist indicates a non-specific already existing resource. | |||
ErrExist = rbdError(-C.EXISTS) |
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.
ErrExist = rbdError(-C.EXISTS) | |
ErrExist = rbdError(-C.EEXIST) |
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.
wow, and I thought I tested this 🤦
9cad79a
to
bd9a7fa
Compare
@Mergifyio rebase |
Certain operations with RBD can return the C errno EEXIST. Applications using go-ceph benefit from easily detecting this error. Signed-off-by: Niels de Vos <[email protected]>
✅ Branch has been successfully rebased |
bd9a7fa
to
b6d6c94
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
Certain operations with RBD can return the C errno EEXISTS. Applications using go-ceph benefit from easily detecting this error.