Skip to content

Inconsistence of GetDBOptionsFromMap between implementation and document #13245

Open
@J0HN50N133

Description

Note: Please use Issues only for bug reports. For questions, discussions, feature requests, etc. post to dev group: https://groups.google.com/forum/#!forum/rocksdb or https://www.facebook.com/groups/rocksdb.dev

Expected behavior

as describe in document:

// @return Status::NotFound means the one (or more) of the option name in

This following expression should be true.

GetDBOptionsFromMap(cfg, options, {}, new_options).code() == rocksdb::Status::kNotFound

Actual behavior

But in fact, the expression is false, the status code is rocksdb::Status::InvalidArgument

if (s.ok() || s.IsInvalidArgument()) {

It seems the implementation translate all error into InvalidArgument for some reasons. The inconsistence between implementation and document is disturbing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions