Skip to content

Commit

Permalink
Merge pull request ClickHouse#70153 from ClickHouse/fix-InterfaceNati…
Browse files Browse the repository at this point in the history
…veSendBytes

Fix: WriteBufferFromPocoSocket does not properly register all write events.
  • Loading branch information
yakov-olkhovskiy authored Oct 1, 2024
2 parents 2b293f6 + 6eee7a1 commit a191016
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/IO/WriteBufferFromPocoSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ void WriteBufferFromPocoSocket::nextImpl()
SCOPE_EXIT({
ProfileEvents::increment(ProfileEvents::NetworkSendElapsedMicroseconds, watch.elapsedMicroseconds());
ProfileEvents::increment(ProfileEvents::NetworkSendBytes, bytes_written);
if (write_event != ProfileEvents::end())
ProfileEvents::increment(write_event, bytes_written);
});

while (bytes_written < offset())
Expand Down

0 comments on commit a191016

Please sign in to comment.