aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranikella <anikella@yandex-team.ru>2022-02-10 16:50:52 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:52 +0300
commit231c91be009a1fd2d4184c44e24669c4ea7887c5 (patch)
tree606e4c735b4aec1815007d3d34182ed63dd5c8cd
parentc0a1bd5a47467ef8bf618172a331c90a2e70d71f (diff)
downloadydb-231c91be009a1fd2d4184c44e24669c4ea7887c5.tar.gz
Restoring authorship annotation for <anikella@yandex-team.ru>. Commit 1 of 2.
-rw-r--r--library/cpp/compproto/huff.h4
-rw-r--r--library/cpp/ipv6_address/ipv6_address.h6
-rw-r--r--util/system/shellcommand.cpp16
-rw-r--r--util/system/shellcommand.h14
4 files changed, 20 insertions, 20 deletions
diff --git a/library/cpp/compproto/huff.h b/library/cpp/compproto/huff.h
index fa5c139189..7e905caa7f 100644
--- a/library/cpp/compproto/huff.h
+++ b/library/cpp/compproto/huff.h
@@ -11,7 +11,7 @@
#include "compressor.h"
-namespace NCompProto {
+namespace NCompProto {
template <size_t CacheSize, typename TEntry>
struct TCache {
ui32 CacheKey[CacheSize];
@@ -35,7 +35,7 @@ namespace NCompProto {
}
}
};
-
+
struct TCode {
i64 Probability;
ui32 Start;
diff --git a/library/cpp/ipv6_address/ipv6_address.h b/library/cpp/ipv6_address/ipv6_address.h
index 1d7eb0b65f..44fab1778d 100644
--- a/library/cpp/ipv6_address/ipv6_address.h
+++ b/library/cpp/ipv6_address/ipv6_address.h
@@ -1,6 +1,6 @@
#pragma once
-#include <util/generic/hash_set.h>
+#include <util/generic/hash_set.h>
#include <util/network/ip.h>
#include <util/stream/input.h>
@@ -61,7 +61,7 @@ public:
explicit TIpv6Address(const in_addr& addr);
static TIpv6Address FromString(TStringBuf srcStr, bool& ok) noexcept;
-
+
constexpr bool IsNull() const noexcept {
return Ip == 0;
}
@@ -204,7 +204,7 @@ std::tuple<THostAddressAndPort, TString, TIpPort> ParseHostAndMayBePortFromStrin
bool& Ok) noexcept;
using TIpv6AddressesSet = THashSet<TIpv6Address>;
-
+
template <>
struct THash<TIpv6Address> {
inline size_t operator()(const TIpv6Address& ip) const {
diff --git a/util/system/shellcommand.cpp b/util/system/shellcommand.cpp
index b1989b5c8c..a11d0824b9 100644
--- a/util/system/shellcommand.cpp
+++ b/util/system/shellcommand.cpp
@@ -366,14 +366,14 @@ public:
return ExitCode;
}
- inline TProcessId GetPid() const {
+ inline TProcessId GetPid() const {
#if defined(_win_)
return GetProcessId(Pid);
#else
- return Pid;
+ return Pid;
#endif
- }
-
+ }
+
inline TFileHandle& GetInputHandle() {
return InputHandle;
}
@@ -1159,10 +1159,10 @@ TMaybe<int> TShellCommand::GetExitCode() const {
return Impl->GetExitCode();
}
-TProcessId TShellCommand::GetPid() const {
- return Impl->GetPid();
-}
-
+TProcessId TShellCommand::GetPid() const {
+ return Impl->GetPid();
+}
+
TFileHandle& TShellCommand::GetInputHandle() {
return Impl->GetInputHandle();
}
diff --git a/util/system/shellcommand.h b/util/system/shellcommand.h
index 8730627fe5..fceaf6d8cd 100644
--- a/util/system/shellcommand.h
+++ b/util/system/shellcommand.h
@@ -407,14 +407,14 @@ public:
TMaybe<int> GetExitCode() const;
/**
- * @brief get id of underlying process
+ * @brief get id of underlying process
* @note depends on os: pid_t on UNIX, HANDLE on win
- *
- * @return pid or handle
- */
- TProcessId GetPid() const;
-
- /**
+ *
+ * @return pid or handle
+ */
+ TProcessId GetPid() const;
+
+ /**
* @brief return the file handle that provides input to the child process
*
* @return input file handle