Use the native implementation for Memcached::decrement #4307

Closed
wants to merge 2 commits into
from

Projects

None yet

3 participants

@adsr
Contributor
adsr commented Nov 21, 2014

Calling Memcached::decrementByKey with an empty string causes all
decrement operations to hash to a single node in the server list. I suspect
the intention was to pass along a NULL, but calling the native implementation
like ::increment seems cleaner either way.

@adsr adsr Use the native implementation for Memcached::decrement
Summary: Calling Memcached::decrementByKey with an empty string causes all
decrement operations to hash to a single node in the server list. I suspect
the intention was to pass along a NULL, but calling the native implementation
like ::increment seems cleaner either way.
c0d2e6f
@facebook-github-bot

This pull request has been imported into Phabricator, and discussion and review of the diff will take place at https://reviews.facebook.net/D29391

@facebook-github-bot

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks!

@fredemmott
Contributor

@adsr: We need the CLA completed before we can look at the change

@adsr
Contributor
adsr commented Nov 24, 2014

@fredemmott CLA should be in now. Thanks!

@fredemmott
Contributor

Thanks - if you did it online and filled in the github username field, the automation should comment here shortly; otherwise, drop me a mail at fe@fb.com with a link to this PR, your real name (from the CLA), and I'll get it hooked up

@facebook-github-bot

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@fredemmott
Contributor

Review of the change happens on that phabricator link - please reply to the comments there :)

@adsr adsr Add test for previous Memcached::decrement fix
Summary: The test requires two memcached servers to be running to ensure the
decrement operation is hashing to the right server under the hood.
2f56fb5
@hhvm-bot hhvm-bot added a commit that closed this pull request Dec 5, 2014
@adsr @hhvm-bot adsr + hhvm-bot Use the native implementation for Memcached::decrement
Summary: Calling Memcached::decrementByKey with an empty string causes all
decrement operations to hash to a single node in the server list. I suspect
the intention was to pass along a NULL, but calling the native implementation
like ::increment seems cleaner either way.
Closes #4307

Reviewed By: @fredemmott

Differential Revision: D1709908

Signature: t1:1709908:1417809973:2c362a52f644b48cf5f141fea8317b1c3f63792c
e2ffb44
@hhvm-bot hhvm-bot closed this in e2ffb44 Dec 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment