aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus
diff options
context:
space:
mode:
authoreeight <eeight@yandex-team.ru>2022-02-10 16:46:18 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:18 +0300
commit475c0a46f28166e83fd263badc7546377cddcabe (patch)
tree39c5a49b8aaad78fe390b6f1f2886bdbda40f3e7 /library/cpp/messagebus
parenta6e0145a095c7bb3770d6e07aee301de5c73f96e (diff)
downloadydb-475c0a46f28166e83fd263badc7546377cddcabe.tar.gz
Restoring authorship annotation for <eeight@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/messagebus')
-rw-r--r--library/cpp/messagebus/actor/executor.cpp2
-rw-r--r--library/cpp/messagebus/actor/thread_extra.cpp6
-rw-r--r--library/cpp/messagebus/actor/thread_extra.h2
-rw-r--r--library/cpp/messagebus/config/netaddr.h8
-rw-r--r--library/cpp/messagebus/event_loop.cpp2
-rw-r--r--library/cpp/messagebus/socket_addr.h4
-rw-r--r--library/cpp/messagebus/test/perftest/perftest.cpp4
7 files changed, 14 insertions, 14 deletions
diff --git a/library/cpp/messagebus/actor/executor.cpp b/library/cpp/messagebus/actor/executor.cpp
index 7a2227a458..5b38e87495 100644
--- a/library/cpp/messagebus/actor/executor.cpp
+++ b/library/cpp/messagebus/actor/executor.cpp
@@ -322,7 +322,7 @@ void TExecutor::RunWorker() {
Y_VERIFY(!ThreadCurrentExecutor, "state check");
ThreadCurrentExecutor = this;
- SetCurrentThreadName("wrkr");
+ SetCurrentThreadName("wrkr");
for (;;) {
TAutoPtr<IWorkItem> wi = DequeueWork();
diff --git a/library/cpp/messagebus/actor/thread_extra.cpp b/library/cpp/messagebus/actor/thread_extra.cpp
index 048480f255..ad59d7113a 100644
--- a/library/cpp/messagebus/actor/thread_extra.cpp
+++ b/library/cpp/messagebus/actor/thread_extra.cpp
@@ -19,12 +19,12 @@ namespace {
#endif
}
-void SetCurrentThreadName(const char* name) {
+void SetCurrentThreadName(const char* name) {
#ifdef _linux_
TStringStream linuxName;
linuxName << GetExecName() << "." << name;
- TThread::SetCurrentThreadName(linuxName.Str().data());
+ TThread::SetCurrentThreadName(linuxName.Str().data());
#else
- TThread::SetCurrentThreadName(name);
+ TThread::SetCurrentThreadName(name);
#endif
}
diff --git a/library/cpp/messagebus/actor/thread_extra.h b/library/cpp/messagebus/actor/thread_extra.h
index b5aa151618..5e8e271beb 100644
--- a/library/cpp/messagebus/actor/thread_extra.h
+++ b/library/cpp/messagebus/actor/thread_extra.h
@@ -24,7 +24,7 @@ namespace NTSAN {
}
-void SetCurrentThreadName(const char* name);
+void SetCurrentThreadName(const char* name);
namespace NThreadExtra {
namespace NPrivate {
diff --git a/library/cpp/messagebus/config/netaddr.h b/library/cpp/messagebus/config/netaddr.h
index b79c0cc355..892f841abc 100644
--- a/library/cpp/messagebus/config/netaddr.h
+++ b/library/cpp/messagebus/config/netaddr.h
@@ -1,7 +1,7 @@
#pragma once
#include <util/digest/numeric.h>
-#include <util/generic/hash.h>
+#include <util/generic/hash.h>
#include <util/generic/ptr.h>
#include <util/generic/strbuf.h>
#include <util/generic/vector.h>
@@ -73,13 +73,13 @@ namespace NBus {
switch (s->sa_family) {
case AF_INET:
- return CombineHashes<size_t>(ComputeHash(TStringBuf(reinterpret_cast<const char*>(&sa->sin_addr), sizeof(sa->sin_addr))), IntHashImpl(sa->sin_port));
+ return CombineHashes<size_t>(ComputeHash(TStringBuf(reinterpret_cast<const char*>(&sa->sin_addr), sizeof(sa->sin_addr))), IntHashImpl(sa->sin_port));
case AF_INET6:
- return CombineHashes<size_t>(ComputeHash(TStringBuf(reinterpret_cast<const char*>(&sa6->sin6_addr), sizeof(sa6->sin6_addr))), IntHashImpl(sa6->sin6_port));
+ return CombineHashes<size_t>(ComputeHash(TStringBuf(reinterpret_cast<const char*>(&sa6->sin6_addr), sizeof(sa6->sin6_addr))), IntHashImpl(sa6->sin6_port));
}
- return ComputeHash(TStringBuf(reinterpret_cast<const char*>(s), a.Len()));
+ return ComputeHash(TStringBuf(reinterpret_cast<const char*>(s), a.Len()));
}
};
diff --git a/library/cpp/messagebus/event_loop.cpp b/library/cpp/messagebus/event_loop.cpp
index f685135bed..71f6f45d96 100644
--- a/library/cpp/messagebus/event_loop.cpp
+++ b/library/cpp/messagebus/event_loop.cpp
@@ -281,7 +281,7 @@ void TEventLoop::TImpl::Run() {
Y_VERIFY(res, "Invalid mbus event loop state");
if (!!Name) {
- SetCurrentThreadName(Name);
+ SetCurrentThreadName(Name);
}
while (AtomicGet(StopSignal) == 0) {
diff --git a/library/cpp/messagebus/socket_addr.h b/library/cpp/messagebus/socket_addr.h
index 959eafe689..7b28c8ce82 100644
--- a/library/cpp/messagebus/socket_addr.h
+++ b/library/cpp/messagebus/socket_addr.h
@@ -2,7 +2,7 @@
#include "hash.h"
-#include <util/generic/hash.h>
+#include <util/generic/hash.h>
#include <util/generic/utility.h>
#include <util/network/address.h>
#include <util/network/init.h>
@@ -101,7 +101,7 @@ namespace NBus {
template <>
struct THash<NBus::NPrivate::TBusIpAddr> {
inline size_t operator()(const NBus::NPrivate::TBusIpAddr& a) const {
- return ComputeHash(TStringBuf((const char*)&a, sizeof(a)));
+ return ComputeHash(TStringBuf((const char*)&a, sizeof(a)));
}
};
diff --git a/library/cpp/messagebus/test/perftest/perftest.cpp b/library/cpp/messagebus/test/perftest/perftest.cpp
index 8489319278..c3a084d5b6 100644
--- a/library/cpp/messagebus/test/perftest/perftest.cpp
+++ b/library/cpp/messagebus/test/perftest/perftest.cpp
@@ -260,7 +260,7 @@ public:
/// dispatch of requests is done here
void Work() {
- SetCurrentThreadName("FastClient::Work");
+ SetCurrentThreadName("FastClient::Work");
while (!TheExit) {
TBusClientConnection* connection;
@@ -524,7 +524,7 @@ void stopsignal(int /*sig*/) {
// -c <node:port,node:port> - start client
void TTestStats::PeriodicallyPrint() {
- SetCurrentThreadName("print-stats");
+ SetCurrentThreadName("print-stats");
for (;;) {
StopEvent.WaitT(TDuration::Seconds(1));