summaryrefslogtreecommitdiffstats
path: root/include/query
diff options
context:
space:
mode:
Diffstat (limited to 'include/query')
-rw-r--r--include/query/rangecount.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/query/rangecount.h b/include/query/rangecount.h
index 24e6705..0743ee6 100644
--- a/include/query/rangecount.h
+++ b/include/query/rangecount.h
@@ -125,9 +125,10 @@ public:
if (rec->rec.key >= query->global_parms.lower_bound &&
rec->rec.key <= query->global_parms.upper_bound) {
if (!rec->is_deleted()) {
- result.record_count++;
if (rec->is_tombstone()) {
result.tombstone_count++;
+ } else {
+ result.record_count++;
}
}
}