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

Field aliases now use hashes, not linear scan #141

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

bigbes
Copy link
Contributor

@bigbes bigbes commented Dec 2, 2018

#24

….1+)

* Update test-run.py and lib/tarantool_server.py to support python 3
* Update tests accordingly to new version of PHPUnit
* Added initialization of standart class properties to 'Tarantool'
Copy link
Member

@Totktonada Totktonada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good in general. Added minor comments.

Blocked until #140 will be merged.

}
#define MH_DEFINE_CMPFUNC(NAME, TYPE) \
int mh_##NAME##cmp_eq(const TYPE **lval, const TYPE **rval, \
void *arg) { \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double whitespace.

} \
\
int mh_##NAME##cmp_key_eq(const struct schema_key *key, \
const TYPE **val, void *arg) { \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two whitespaces before tabs.

if (strncmp(val->field_name, field_name, field_name_len) == 0)
return val->field_number;
}
return -1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems it was the singleton use of the schema_list/schema_list_len, so these fields can be removed now from struct schema_space_value?

@Totktonada Totktonada changed the base branch from php7-v2 to master June 29, 2020 22:13
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

Successfully merging this pull request may close these issues.

2 participants