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
commitaae523fee7a5dc0b76bc9ef82b5df543ac40984a (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8
parent231c91be009a1fd2d4184c44e24669c4ea7887c5 (diff)
downloadydb-aae523fee7a5dc0b76bc9ef82b5df543ac40984a.tar.gz
Restoring authorship annotation for <anikella@yandex-team.ru>. Commit 2 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 7e905caa7f..fa5c139189 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 44fab1778d..1d7eb0b65f 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 a11d0824b9..b1989b5c8c 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 fceaf6d8cd..8730627fe5 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