Skip to content

Commit 3570574

Browse files
authored
Merge 0d17842 into 275b86e
2 parents 275b86e + 0d17842 commit 3570574

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ydb/library/yql/udfs/common/clickhouse/client/src/IO/WriteBufferFromFileDescriptor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void WriteBufferFromFileDescriptor::nextImpl()
4848
Stopwatch watch;
4949

5050
size_t bytes_written = 0;
51-
while (bytes_written != offset())
51+
while (bytes_written < offset())
5252
{
5353
ProfileEvents::increment(ProfileEvents::WriteBufferFromFileDescriptorWrite);
5454

ydb/library/yql/udfs/common/clickhouse/client/src/IO/WriteBufferFromFileDescriptorDiscardOnFailure.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace NDB
1111
void WriteBufferFromFileDescriptorDiscardOnFailure::nextImpl()
1212
{
1313
size_t bytes_written = 0;
14-
while (bytes_written != offset())
14+
while (bytes_written < offset())
1515
{
1616
ssize_t res = ::write(fd, working_buffer.begin() + bytes_written, offset() - bytes_written);
1717

0 commit comments

Comments
 (0)