aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authordzats <dzats@yandex-team.ru>2022-02-10 16:49:37 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:37 +0300
commit44f31b316af517a4fbc6a82ebed8a1c51807deac (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library
parent25972584abddd173801b48d92f8719e83af797b1 (diff)
downloadydb-44f31b316af517a4fbc6a82ebed8a1c51807deac.tar.gz
Restoring authorship annotation for <dzats@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library')
-rw-r--r--library/cpp/balloc/balloc.cpp2
-rw-r--r--library/cpp/http/misc/httpreqdata.h2
-rw-r--r--library/cpp/http/server/ya.make6
-rw-r--r--library/cpp/lfalloc/lf_allocX64.h4
-rw-r--r--library/cpp/logger/element.cpp2
-rw-r--r--library/cpp/logger/log.cpp4
-rw-r--r--library/cpp/logger/thread.cpp12
-rw-r--r--library/cpp/logger/thread.h2
-rw-r--r--library/cpp/malloc/api/malloc.cpp10
-rw-r--r--library/cpp/malloc/api/malloc.h4
-rw-r--r--library/cpp/scheme/scimpl_defs.h2
-rw-r--r--library/cpp/svnversion/svnversion.h2
12 files changed, 26 insertions, 26 deletions
diff --git a/library/cpp/balloc/balloc.cpp b/library/cpp/balloc/balloc.cpp
index 7188eb5af2..fab489db4c 100644
--- a/library/cpp/balloc/balloc.cpp
+++ b/library/cpp/balloc/balloc.cpp
@@ -61,7 +61,7 @@ namespace NBalloc {
} else if (signature == DISABLED_SIGNATURE) {
return false;
}
- NMalloc::AbortFromCorruptedAllocator();
+ NMalloc::AbortFromCorruptedAllocator();
Y_UNREACHABLE();
}
diff --git a/library/cpp/http/misc/httpreqdata.h b/library/cpp/http/misc/httpreqdata.h
index b148ae99e1..16e59c4d78 100644
--- a/library/cpp/http/misc/httpreqdata.h
+++ b/library/cpp/http/misc/httpreqdata.h
@@ -83,7 +83,7 @@ public:
void SetPath(const TString& path);
const char* GetCurPage() const;
- bool Parse(const char* req);
+ bool Parse(const char* req);
void AddHeader(const TString& name, const TString& value);
private:
diff --git a/library/cpp/http/server/ya.make b/library/cpp/http/server/ya.make
index 097d26d547..bae6f33306 100644
--- a/library/cpp/http/server/ya.make
+++ b/library/cpp/http/server/ya.make
@@ -16,12 +16,12 @@ SRCS(
response.cpp
)
-PEERDIR(
+PEERDIR(
library/cpp/http/misc
library/cpp/http/io
library/cpp/threading/equeue
-)
-
+)
+
END()
RECURSE_FOR_TESTS(ut)
diff --git a/library/cpp/lfalloc/lf_allocX64.h b/library/cpp/lfalloc/lf_allocX64.h
index cc0aac8523..fd2a906d6f 100644
--- a/library/cpp/lfalloc/lf_allocX64.h
+++ b/library/cpp/lfalloc/lf_allocX64.h
@@ -9,7 +9,7 @@
#include <util/system/compat.h>
#include <util/system/compiler.h>
#include <util/system/types.h>
-
+
#ifdef _MSC_VER
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
@@ -454,7 +454,7 @@ static void* LargeBlockAlloc(size_t _nSize, ELFAllocCounter counter) {
char* pRes = (char*)VirtualAlloc(0, (pgCount + 1) * 4096ll, MEM_COMMIT, PAGE_READWRITE);
if (Y_UNLIKELY(pRes == 0)) {
NMalloc::AbortFromCorruptedAllocator("out of memory");
- }
+ }
#else
IncrementCounter(counter, pgCount * 4096ll);
diff --git a/library/cpp/logger/element.cpp b/library/cpp/logger/element.cpp
index cc9974a88b..b510fe16e1 100644
--- a/library/cpp/logger/element.cpp
+++ b/library/cpp/logger/element.cpp
@@ -3,7 +3,7 @@
#include <utility>
-TLogElement::TLogElement(const TLog* parent)
+TLogElement::TLogElement(const TLog* parent)
: Parent_(parent)
, Priority_(Parent_->DefaultPriority())
{
diff --git a/library/cpp/logger/log.cpp b/library/cpp/logger/log.cpp
index 08e0e8d91b..e1d70cc3d2 100644
--- a/library/cpp/logger/log.cpp
+++ b/library/cpp/logger/log.cpp
@@ -150,7 +150,7 @@ bool TLog::IsOpen() const noexcept {
return Impl_->IsOpen();
}
-void TLog::AddLog(const char* format, ...) const {
+void TLog::AddLog(const char* format, ...) const {
va_list args;
va_start(args, format);
@@ -239,7 +239,7 @@ void TLog::Write(ELogPriority priority, const TStringBuf data) const {
Write(priority, data.data(), data.size());
}
-void TLog::Write(const char* data, size_t len) const {
+void TLog::Write(const char* data, size_t len) const {
Write(Impl_->DefaultPriority(), data, len);
}
diff --git a/library/cpp/logger/thread.cpp b/library/cpp/logger/thread.cpp
index bc868bc843..0ccf9e374b 100644
--- a/library/cpp/logger/thread.cpp
+++ b/library/cpp/logger/thread.cpp
@@ -81,9 +81,9 @@ public:
QueueOverflowCallback_();
} else {
ythrow yexception() << "log queue exhausted";
- }
+ }
}
-
+
// Write an emergency message when the memory allocator is corrupted.
// The TThreadedLogBackend object can't be used after this method is called.
inline void WriteEmergencyData(const TLogRecord& rec) noexcept {
@@ -136,14 +136,14 @@ void TThreadedLogBackend::WriteData(const TLogRecord& rec) {
void TThreadedLogBackend::ReopenLog() {
Impl_->ReopenLog();
}
-
+
void TThreadedLogBackend::ReopenLogNoFlush() {
Impl_->ReopenLogNoFlush();
}
-void TThreadedLogBackend::WriteEmergencyData(const TLogRecord& rec) {
- Impl_->WriteEmergencyData(rec);
-}
+void TThreadedLogBackend::WriteEmergencyData(const TLogRecord& rec) {
+ Impl_->WriteEmergencyData(rec);
+}
size_t TThreadedLogBackend::QueueSize() const {
return Impl_->QueueSize();
diff --git a/library/cpp/logger/thread.h b/library/cpp/logger/thread.h
index b936b0ddcb..65f7a88e87 100644
--- a/library/cpp/logger/thread.h
+++ b/library/cpp/logger/thread.h
@@ -20,7 +20,7 @@ public:
// Write an emergency message when the memory allocator is corrupted.
// The TThreadedLogBackend object can't be used after this method is called.
void WriteEmergencyData(const TLogRecord& rec);
-
+
private:
class TImpl;
THolder<TImpl> Impl_;
diff --git a/library/cpp/malloc/api/malloc.cpp b/library/cpp/malloc/api/malloc.cpp
index 187cd4b74e..eed1c58a38 100644
--- a/library/cpp/malloc/api/malloc.cpp
+++ b/library/cpp/malloc/api/malloc.cpp
@@ -1,6 +1,6 @@
#include <stdlib.h>
#include <stdio.h>
-
+
#include "malloc.h"
namespace {
@@ -27,11 +27,11 @@ namespace NMalloc {
, CheckParam(CheckEmptyParam)
{
}
-
+
void AbortFromCorruptedAllocator(const char* errorMessage) {
errorMessage = errorMessage ? errorMessage : "<unspecified>";
fprintf(stderr, "Allocator error: %s\n", errorMessage);
- IsAllocatorCorrupted = true;
- abort();
- }
+ IsAllocatorCorrupted = true;
+ abort();
+ }
}
diff --git a/library/cpp/malloc/api/malloc.h b/library/cpp/malloc/api/malloc.h
index 946f09ab49..ebd545d6dd 100644
--- a/library/cpp/malloc/api/malloc.h
+++ b/library/cpp/malloc/api/malloc.h
@@ -15,9 +15,9 @@ namespace NMalloc {
bool (*CheckParam)(const char* param, bool defaultValue);
};
- extern volatile bool IsAllocatorCorrupted;
+ extern volatile bool IsAllocatorCorrupted;
void AbortFromCorruptedAllocator(const char* errorMessage = nullptr);
-
+
// this function should be implemented by malloc implementations
TMallocInfo MallocInfo();
diff --git a/library/cpp/scheme/scimpl_defs.h b/library/cpp/scheme/scimpl_defs.h
index 286790c3d6..f3dd66b437 100644
--- a/library/cpp/scheme/scimpl_defs.h
+++ b/library/cpp/scheme/scimpl_defs.h
@@ -13,7 +13,7 @@
#include <util/generic/string.h>
#include <util/generic/vector.h>
#include <functional>
-#include <util/string/vector.h>
+#include <util/string/vector.h>
#include <util/string/type.h>
namespace NSc {
diff --git a/library/cpp/svnversion/svnversion.h b/library/cpp/svnversion/svnversion.h
index 81a4654476..b99615daa9 100644
--- a/library/cpp/svnversion/svnversion.h
+++ b/library/cpp/svnversion/svnversion.h
@@ -2,7 +2,7 @@
#if !defined(FROM_IMPL)
#define PROGRAM_VERSION GetProgramSvnVersion()
-#define ARCADIA_SOURCE_PATH GetArcadiaSourcePath()
+#define ARCADIA_SOURCE_PATH GetArcadiaSourcePath()
#define PRINT_VERSION PrintSvnVersionAndExit(argc, (char**)argv)
#define PRINT_VERSION_EX(opts) PrintSvnVersionAndExitEx(argc, (char**)argv, opts)
#endif