Skip to content

Cpp KVS does not reflect if the default value is set. #182

@Saumya-R

Description

@Saumya-R

In the rust code, "kvs.is_value_default()" function, can detect if get value is a default or set value. E.g. for the scenario where for key x there is a default 10 and then it is explicitly set to 10, kvs.is_value_default() will return false as explicitly used value is used.

However, there is no matching function on the cpp side. The closest function is kvs.has_default_value that will return true for the above scenario.

Expectation is that kvs.has_default_value in CPP works like rust's kvs.is_value_default(), i.e, the behaviour of rust and cpp code are same.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions