Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 311 by [email protected]: Report a misleading comment in memcached.hpp
http://code.google.com/p/memcached/issues/detail?id=311

171    * @param[in] key key of object to fetch
172    * @param[out] ret_val store returned object in this vector
173    * @return a memcached return structure
174    */
175   memcached_return_t fetch(std::string &key,
176                            std::vector<char> &ret_val,
177                            uint32_t &flags,
178                            uint64_t &cas_value)
Lines above said key is a input parameter, but in fact, it doesn't!

186 key.assign(memcached_result_key_value(result), memcached_result_key_length(result));

This line in function modify the key value, and never use the value you pass to the function.So the parameter must be an output parameter, not an
input parameter.The comment told lies.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to