File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1880,7 +1880,7 @@ TxGraph::GraphIndex TxGraphImpl::CountDistinctClusters(std::span<const Ref* cons
1880
1880
std::vector<Cluster*> clusters;
1881
1881
clusters.reserve (refs.size ());
1882
1882
for (const Ref* ref : refs) {
1883
- if (ref == nullptr ) continue ;
1883
+ Assume (ref) ;
1884
1884
if (GetRefGraph (*ref) == nullptr ) continue ;
1885
1885
Assume (GetRefGraph (*ref) == this );
1886
1886
auto cluster = FindCluster (GetRefIndex (*ref), level);
Original file line number Diff line number Diff line change @@ -159,8 +159,8 @@ class TxGraph
159
159
virtual std::strong_ordering CompareMainOrder (const Ref& a, const Ref& b) noexcept = 0;
160
160
/* * Count the number of distinct clusters that the specified transactions belong to. If
161
161
* main_only is false and a staging graph exists, staging clusters are counted. Otherwise,
162
- * main clusters are counted. Refs that do not exist in the queried graph are ignored. The
163
- * queried graph must not be oversized. */
162
+ * main clusters are counted. Refs that do not exist in the queried graph are ignored. Refs
163
+ * can not be null. The queried graph must not be oversized. */
164
164
virtual GraphIndex CountDistinctClusters (std::span<const Ref* const >, bool main_only = false ) noexcept = 0;
165
165
166
166
/* * Perform an internal consistency check on this object. */
You can’t perform that action at this time.
0 commit comments