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
After updated libcouchbase cberl:append not work #59
Comments
58 is the detailed error code
I'll look into this |
Looks like the newer version is stricter, flags should not be set for append/prepend:
|
Can we keep the api append/4?
or
|
Typically is bad form to breaking public APIs. Unless of course there is an |
It's easy enough to avoid in this case, but it will happen from time to time. I will add deprecated functions for append and prepend which accept an unused CAS value |
Understood, rock and a hard place, never easy, though this project is I must thank you for your amazing contribution, most appreciated :) |
@sjmackenzie, it's my fault. I normally try to keep us pretty close to SemVer, and I didn't look closely at the patch set to see that there was a breaking change in there. We're not always going to be able to avoid them, but I'll try to make sure that they're not a surprise, at least. |
With that and returning {ok,CAS} and having a flexible options argument for storage functions, it would seem like a good idea to bundle as many pending API changes as desired into a 1.1 branch, and keep non-api-breaking patches for master in the meantime ? You can then decide how long the 1.0 branch should be supported. |
my personal preference is to use the zeromq development 'contract' |
(forgive my mobile phone typos) |
I've long considered creating a "v2" API, while maintaining this one. Now might be the right time to do that, with the current API being 'stable' and the new API being 'experimental'. The biggest issue is that the current API doesn't provide for many ways to extend it w/o breaking compatibility. I have a changeset for the deprecated append/prepend functions, so I will merge those in shortly and we can hold off and put the CAS changes into a new experimental branch. Is this agreeable? @sjmackenzie @vincentdephily @hlieberman |
Yes its a good way albeit using a different name. Names, if used in |
After update libcouchbase from 2.4.1 to 2.4.4, I found that append function always return unknow error. Is somebody also have this issue?
In CentOS :
cberl:append(bucket,0, <<"test">>, <<"test">>).
{error,{unknown_error,58}}
In OSX:
cberl:append(bucket,0, <<"test">>, <<"test">>).
{error,unknown_error}
The text was updated successfully, but these errors were encountered: