-
Notifications
You must be signed in to change notification settings - Fork 13
schema - optional with defaults - improved behaviour (not injecting the default in the index) #246
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
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -35,7 +35,7 @@ int fdb_request_add1(fdb_request_t* req, const char* param, const char* value) { | |||||||||||||||||
|
|
||||||||||||||||||
| void key_compare(const std::vector<fdb5::Key>& keys, fdb_listiterator_t* it, bool checkLevel = true) { | ||||||||||||||||||
| const char* k; | ||||||||||||||||||
| const char* v; | ||||||||||||||||||
| const char* v = nullptr; | ||||||||||||||||||
| size_t l; | ||||||||||||||||||
| int err; | ||||||||||||||||||
|
|
||||||||||||||||||
|
|
@@ -47,7 +47,12 @@ void key_compare(const std::vector<fdb5::Key>& keys, fdb_listiterator_t* it, boo | |||||||||||||||||
| size_t level = 0; | ||||||||||||||||||
| for (const auto& key : keys) { | ||||||||||||||||||
| for (const auto& k1 : key) { | ||||||||||||||||||
| int err = fdb_splitkey_next_metadata(sk, &k, &v, checkLevel ? &l : nullptr); | ||||||||||||||||||
| int err; | ||||||||||||||||||
| v = nullptr; | ||||||||||||||||||
| // skip empty values (optional metadata) | ||||||||||||||||||
| while (v == nullptr || strlen(v) == 0) { | ||||||||||||||||||
|
Comment on lines
+50
to
+53
|
||||||||||||||||||
| int err; | |
| v = nullptr; | |
| // skip empty values (optional metadata) | |
| while (v == nullptr || strlen(v) == 0) { | |
| int err = FDB_SUCCESS; | |
| v = nullptr; | |
| // skip empty values (optional metadata) | |
| while ((v == nullptr || strlen(v) == 0) && err == FDB_SUCCESS) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fdb-patchhas been commented out from the list of built tools underHAVE_GRIB. If this is not intentional, it will remove the executable from builds/installs. If it is intentional, it would help to add a short comment explaining why the tool is being disabled (and ideally gate it behind an option) to avoid an unexpected feature regression.