Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistence of GetDBOptionsFromMap between implementation and document #13245

Open
J0HN50N133 opened this issue Dec 25, 2024 · 0 comments
Open

Comments

@J0HN50N133
Copy link

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.

@J0HN50N133 J0HN50N133 changed the title GetDBOptionsFromMap Inconsistence of GetDBOptionsFromMap between implementation and document Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant