Skip to content

Commit

Permalink
*: Remove useless AIO Buffer (#8784)
Browse files Browse the repository at this point in the history
ref #6233
  • Loading branch information
Lloyd-Pottiger authored Feb 27, 2024
1 parent a954fba commit ef90ce4
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 1,247 deletions.
4 changes: 0 additions & 4 deletions dbms/src/Common/ProfileEvents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
M(ReadBufferFromFileDescriptorReadBytes) \
M(WriteBufferFromFileDescriptorWrite) \
M(WriteBufferFromFileDescriptorWriteBytes) \
M(ReadBufferAIORead) \
M(ReadBufferAIOReadBytes) \
M(WriteBufferAIOWrite) \
M(WriteBufferAIOWriteBytes) \
\
M(MarkCacheHits) \
M(MarkCacheMisses) \
Expand Down
4 changes: 2 additions & 2 deletions dbms/src/Common/TiFlashSecurity.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <Common/FileChangesTracker.h>
#include <Common/grpcpp.h>
#include <Core/Types.h>
#include <IO/Buffer/createReadBufferFromFileBase.h>
#include <IO/Buffer/ReadBufferFromFile.h>
#include <Poco/Crypto/X509Certificate.h>
#include <Poco/String.h>
#include <Poco/StringTokenizer.h>
Expand Down Expand Up @@ -212,7 +212,7 @@ class TiFlashSecurityConfig : public ConfigObject
{
return "";
}
auto buffer = createReadBufferFromFileBase(filename, 1024, 0);
auto buffer = std::make_unique<ReadBufferFromFile>(filename);
String result;
while (!buffer->eof())
{
Expand Down
311 changes: 0 additions & 311 deletions dbms/src/IO/Buffer/ReadBufferAIO.cpp

This file was deleted.

Loading

0 comments on commit ef90ce4

Please sign in to comment.