From 19614b4fc1782ef098c1c10bcc1bb0a791dca298 Mon Sep 17 00:00:00 2001 From: magenbluten Date: Tue, 7 May 2019 09:26:08 +0200 Subject: [PATCH] backend: iterator early exit --- backend/balboa-rocksdb/rocksdb-impl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/balboa-rocksdb/rocksdb-impl.c b/backend/balboa-rocksdb/rocksdb-impl.c index 3b66a5e..859dfb5 100644 --- a/backend/balboa-rocksdb/rocksdb-impl.c +++ b/backend/balboa-rocksdb/rocksdb-impl.c @@ -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 @@ -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