bigdata4u / spymemcached

Automatically exported from code.google.com/p/spymemcached
0 stars 0 forks source link

Binary OperationImpl should skip keyLen #263

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
From the mailing list:

According to the binary protocol, the get operation responses MAY contain the 
key:

http://code.google.com/p/memcached/wiki/BinaryProtocolRevamped#Get,_Get_Quietly,
_Get_Key,_Get_Key_Quietly

So shouldn't OperationImpl.readFromBuffer() skip keyLen bytes of the payload? 
Is that a bug? Otherwise if mykey=myval in membase the client will see the 
value "mykeymyval" if the key is returned.

Original issue reported on code.google.com by michael....@gmail.com on 3 Dec 2012 at 4:24