Uploaded image for project: 'Hot Rod Native client'
  1. Hot Rod Native client
  2. HRCPP-177

Marshaller type error in getCache()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.CR2
    • 7.0.0.Alpha1
    • Core
    • 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);

              isavin_jira Ion Savin (Inactive)
              isavin_jira Ion Savin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: