Skip to content

Commit 11a9dba

Browse files
committed
fix WriteTimestampEstimate ydb-platform#2
1 parent db344be commit 11a9dba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ydb/core/persqueue/partition.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ TInstant TPartition::GetWriteTimestampEstimate(ui64 lagSize) const {
301301
return WriteTimestampEstimate;
302302
}
303303

304-
return TAppData::TimeProvider->Now();
304+
return std::max(TAppData::TimeProvider->Now(), WriteTimestampEstimate);
305305
}
306306

307307
ui64 TPartition::ImportantClientsMinOffset() const {

0 commit comments

Comments
 (0)