Skip to content

Commit

Permalink
Merge pull request #34 from magenbluten/develop
Browse files Browse the repository at this point in the history
early exit the prefix iterator
  • Loading branch information
satta authored May 7, 2019
2 parents 867af8c + ab8cbca commit 2792342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/balboa-rocksdb/rocksdb-impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ static int blb_rocksdb_query_by_o(
!= 0) {
break;
}
if((size_t)toks[RRNAME].tok_len != qrrname_len) { continue; }
if((size_t)toks[RRNAME].tok_len != qrrname_len) { break; }

if(toks[SENSORID].tok_len == 0
|| (q->qsensorid_len > 0
Expand Down Expand Up @@ -520,7 +520,7 @@ static int blb_rocksdb_query_by_i(
!= 0) {
break;
}
if((size_t)toks[RDATA].tok_len != qrdata_len) { continue; }
if((size_t)toks[RDATA].tok_len != qrdata_len) { break; }

if(toks[SENSORID].tok_len == 0
|| (q->qsensorid_len > 0
Expand Down

0 comments on commit 2792342

Please sign in to comment.