Skip to content

Commit abe9e9e

Browse files
[fix](tablet) fix stale_version_count() returning wrong value
stale_version_count() was incorrectly returning _rs_metas.size() instead of _stale_rs_metas.size(), causing incorrect calculation of total version count in places like rowset_builder.cpp and push_handler.cpp where it's used as: version_count() + stale_version_count() This was effectively calculating version_count * 2 instead of the intended total of active + stale versions.
1 parent f926421 commit abe9e9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

be/src/olap/tablet_meta.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ inline size_t TabletMeta::version_count() const {
766766
}
767767

768768
inline size_t TabletMeta::stale_version_count() const {
769-
return _rs_metas.size();
769+
return _stale_rs_metas.size();
770770
}
771771

772772
inline TabletState TabletMeta::tablet_state() const {

0 commit comments

Comments
 (0)