Skip to content

Commit

Permalink
fix WriteTimestampEstimate ydb-platform#2
Browse files Browse the repository at this point in the history
  • Loading branch information
nshestakov committed Dec 11, 2024
1 parent db344be commit 11a9dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ydb/core/persqueue/partition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ TInstant TPartition::GetWriteTimestampEstimate(ui64 lagSize) const {
return WriteTimestampEstimate;
}

return TAppData::TimeProvider->Now();
return std::max(TAppData::TimeProvider->Now(), WriteTimestampEstimate);
}

ui64 TPartition::ImportantClientsMinOffset() const {
Expand Down

0 comments on commit 11a9dba

Please sign in to comment.