You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1.call credis_set
2.provide fh, key and value args to the function
What is the expected output? What do you see instead?
KEY should be set to VALUE
Instead it gets set to sizeof(VALUE) of the provided VALUE e.g. 5 in case of
KEY "hello".
What version of the product are you using? On what operating system?
credis 0.2.3 with redis 2.4.17 on RHEL 6.3 x86_64
Please provide any additional information below.
The attached test-client.c is compiled with the following line:
gcc -g -O2 -Wall -DPRINTDEBUG credis.c test-client.c -o test-client
Uppon executing the client, debug shows:
credis_connect() @ 768: Connected to Redis version: 2.4.17
cr_sendandreceive() @ 602: Sending message: len=21, data=SET abra 7
kadabra
cr_readln() @ 423: received 37 bytes: +OK
-ERR unknown command 'kadabra'
I'm guessing it's a parse string issue, since debug shows:
data=SET abra <val lenght> kadabra
Bbut i'm no C expert.
Checking the result with the redis_cli tool:
./redis-cli GET abra
"7"
Original issue reported on code.google.com by sir.man...@gmail.com on 24 Sep 2012 at 7:18
Original issue reported on code.google.com by
sir.man...@gmail.com
on 24 Sep 2012 at 7:18Attachments:
The text was updated successfully, but these errors were encountered: