-
Bug
-
Resolution: Done
-
Major
-
7.0.0.Alpha1
-
None
Moving over the issue from GitHub:
https://github.com/infinispan/cpp-client/issues/148
—
Two overloaded getCache() have bug.
----------------- BUGGY FUNCTION ----------------------
1. template RemoteCache getCache(
HR_SHARED_PTR > km, HR_SHARED_PTR > vm,
bool forceReturnValue = false)
template RemoteCache getCache( HR_SHARED_PTR > km, HR_SHARED_PTR > vm, const std::string& name, bool forceReturnValue = false)
----------------- BUG LINE ----------------------
rcache.valueMarshallerPtr.reset(new portable::counted_wrapper > >(vm), &genericDelete);
Ths line sets user-given marshaller function of VALUE.
And type of VALUE is template parameter "V"
But, key type "K" is used instead of "V".
----------------- FIX ----------------------
"K" ---> "V"
rcache.valueMarshallerPtr.reset(new portable::counted_wrapper > >(vm), &genericDelete);