Skip to content

NearCacheConfig constructor does not take the correct parameter #1137

@cngzhnp

Description

@cngzhnp

C++ compiler version: GNU 12.2.0
Hazelcast Cpp client version: 5.1.0
Hazelcast server version: -
Number of the clients: -
Cluster size, i.e. the number of Hazelcast cluster members:
OS version (Windows/Linux/OSX): Linux

Please attach relevant logs and files for client and server side.

Expected behaviour

One of the constructor of near_cache_config class has two parameters. The first parameter was used to assign the cache name into class member _name field via base constructor.

Actual behaviour

However, this constructor takes default class member name instead of parameter. It should be fixed for this class. Solution must be done like below, IMHO.

near_cache_config::near_cache_config(const std::string& cache_name,
                                     in_memory_format memory_format)
  : near_cache_config(cache_name)
{
    this->in_memory_format_ = memory_format;
}

Steps to reproduce the behaviour

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions