Skip to content
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

Always return false when calling method from worker thread. #9

Closed
sbluemin opened this issue Jan 24, 2019 · 2 comments
Closed

Always return false when calling method from worker thread. #9

sbluemin opened this issue Jan 24, 2019 · 2 comments

Comments

@sbluemin
Copy link

sbluemin commented Jan 24, 2019

Hi, I using Redis Cluster client.

In all methods, worker threads are prevented from performing normal operations.

  1. RedisClusterClient object (main thread)
  2. hset is working ok. (main thread)
  3. hset is alway not working. (worker thread)

My dev environment.

  • c++14
  • cpprestsdk (pplx)

PS. I'm not native speaker. sry.

@sewenew
Copy link
Owner

sewenew commented Jan 24, 2019

I think you might misunderstand the return value of HSET command. When it returns false it doesn't mean that the operation is failed, instead, it means that the field that you want to set, already exists, and the value is updated.

Please check HSET manual and redis++'s doc for boolean return value for details.

Regards

@sbluemin
Copy link
Author

Oh my mistake. thank you for your answer :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants