aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/file.cpp
diff options
context:
space:
mode:
authorsankear <sankear@yandex-team.ru>2022-02-10 16:50:10 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:10 +0300
commitaed1c1c7782eb0a0536e5b25bbed950b397e0ac8 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system/file.cpp
parent7377d7b033ffbef85e9bb0bf35091a8e79ed422c (diff)
downloadydb-aed1c1c7782eb0a0536e5b25bbed950b397e0ac8.tar.gz
Restoring authorship annotation for <sankear@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/file.cpp')
-rw-r--r--util/system/file.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/system/file.cpp b/util/system/file.cpp
index 0b1b38d668..4a261d020c 100644
--- a/util/system/file.cpp
+++ b/util/system/file.cpp
@@ -937,7 +937,7 @@ public:
// Syscalls can cause contention if they operate on very large data blocks.
static constexpr size_t MaxReadPortion = 1_GB;
- i32 RawRead(void* bufferIn, size_t numBytes) {
+ i32 RawRead(void* bufferIn, size_t numBytes) {
const size_t toRead = Min(MaxReadPortion, numBytes);
return Handle_.Read(bufferIn, toRead);
}
@@ -1002,7 +1002,7 @@ public:
while (numBytes) {
const i32 toRead = (i32)Min(MaxReadPortion, numBytes);
- const i32 reallyRead = RawPread(buf, toRead, offset);
+ const i32 reallyRead = RawPread(buf, toRead, offset);
if (reallyRead < 0) {
ythrow TFileError() << "can not read data from " << FileName_.Quote();
@@ -1021,10 +1021,10 @@ public:
return buf - (ui8*)bufferIn;
}
- i32 RawPread(void* buf, ui32 len, i64 offset) const {
- return Handle_.Pread(buf, len, offset);
- }
-
+ i32 RawPread(void* buf, ui32 len, i64 offset) const {
+ return Handle_.Pread(buf, len, offset);
+ }
+
void Pload(void* buf, size_t len, i64 offset) const {
if (Pread(buf, len, offset) != len) {
ythrow TFileError() << "can't read " << len << " bytes at offset " << offset << " from " << FileName_.Quote();
@@ -1171,8 +1171,8 @@ size_t TFile::Read(void* buf, size_t len) {
return Impl_->Read(buf, len);
}
-i32 TFile::RawRead(void* buf, size_t len) {
- return Impl_->RawRead(buf, len);
+i32 TFile::RawRead(void* buf, size_t len) {
+ return Impl_->RawRead(buf, len);
}
size_t TFile::ReadOrFail(void* buf, size_t len) {