1
0
Fork 0

whitespace

This commit is contained in:
Jan Steemann 2012-11-07 18:15:10 +01:00
parent 308455f842
commit bdccef3965
1 changed files with 6 additions and 7 deletions

View File

@ -311,14 +311,13 @@ TRI_aql_index_t* TRI_DetermineIndexAql (TRI_aql_context_t* const context,
for (k = 0; k < candidates->_length; ++k) {
TRI_aql_field_access_t* candidate = (TRI_aql_field_access_t*) TRI_AtVectorPointer(candidates, k);
if (candidate->_type == TRI_AQL_ACCESS_IMPOSSIBLE ||
candidate->_type == TRI_AQL_ACCESS_ALL) {
// wrong index type, doesn't help us at all
continue;
}
if (!TRI_EqualString(indexedFieldName, candidate->_fullName + candidate->_variableNameLength + 1)) {
if (! TRI_EqualString(indexedFieldName, candidate->_fullName + candidate->_variableNameLength + 1)) {
// different attribute, doesn't help
continue;
}
@ -326,7 +325,7 @@ TRI_aql_index_t* TRI_DetermineIndexAql (TRI_aql_context_t* const context,
// attribute is used in index
if (idx->_type == TRI_IDX_TYPE_PRIMARY_INDEX) {
if (!IsExactCandidate(candidate)) {
if (! IsExactCandidate(candidate)) {
// wrong access type for primary index
continue;
}
@ -335,7 +334,7 @@ TRI_aql_index_t* TRI_DetermineIndexAql (TRI_aql_context_t* const context,
}
else if (idx->_type == TRI_IDX_TYPE_HASH_INDEX) {
if (!IsExactCandidate(candidate)) {
if (! IsExactCandidate(candidate)) {
// wrong access type for hash index
continue;
}
@ -349,7 +348,7 @@ TRI_aql_index_t* TRI_DetermineIndexAql (TRI_aql_context_t* const context,
}
else if (idx->_type == TRI_IDX_TYPE_BITARRAY_INDEX) {
if (!IsExactCandidate(candidate)) {
if (! IsExactCandidate(candidate)) {
// wrong access type for hash index
continue;
}
@ -381,8 +380,8 @@ TRI_aql_index_t* TRI_DetermineIndexAql (TRI_aql_context_t* const context,
candidateIsExact = IsExactCandidate(candidate);
if ((candidateIsExact && !lastTypeWasExact) ||
(!candidateIsExact && !lastTypeWasExact)) {
if ((candidateIsExact && ! lastTypeWasExact) ||
(!candidateIsExact && ! lastTypeWasExact)) {
// if we already had a range query, we cannot check for equality after that
// if we already had a range query, we cannot check another range after that
continue;