Skip to content

Commit 0410581

Browse files
committed
Intermediate changes
commit_hash:f3acde65f4eb25503f414d5262f52b496123bd96
1 parent d7d05d2 commit 0410581

File tree

9 files changed

+44
-37
lines changed

9 files changed

+44
-37
lines changed

contrib/libs/dtl/.yandex_meta/devtools.licenses.report

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# FILE_INCLUDE - include all file data into licenses text file
3434
# =======================
3535

36-
KEEP LicenseRef-scancode-unknown-license-reference 27ff83b6d7e95b709c1a8b94532ebef1
36+
KEEP BSD-3-Clause 27ff83b6d7e95b709c1a8b94532ebef1
3737
BELONGS ya.make
3838
License text:
3939
Please read the file [COPYING](https://github.com/cubicdaiya/dtl/blob/master/COPYING).
@@ -45,7 +45,7 @@ BELONGS ya.make
4545
Files with this license:
4646
README.md [685:685]
4747

48-
KEEP LicenseRef-scancode-unknown-license-reference AND BSD-3-Clause 3d436eacb955b50a8f94435e0ba12145
48+
KEEP BSD-3-Clause 3d436eacb955b50a8f94435e0ba12145
4949
BELONGS ya.make
5050
License text:
5151
In short, Diff Template Library is distributed under so called "BSD license",
@@ -90,7 +90,7 @@ FILE_INCLUDE CONTRIBUTORS found in files: COPYING at line 20, COPYING at line 24
9090
Files with this license:
9191
COPYING [6:30]
9292

93-
KEEP LicenseRef-scancode-unknown-license-reference AND BSD-3-Clause d9ebc19a46340bfaf128a098aade97ed
93+
KEEP BSD-3-Clause d9ebc19a46340bfaf128a098aade97ed
9494
BELONGS ya.make
9595
License text:
9696
In short, Diff Template Library is distributed under so called "BSD license",

contrib/libs/dtl/.yandex_meta/licenses.list.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
====================BSD-3-Clause====================
2+
In short, Diff Template Library is distributed under so called "BSD license",
3+
4+
15
====================BSD-3-Clause====================
26
Redistribution and use in source and binary forms, with or without modification,
37
are permitted provided that the following conditions are met:
@@ -26,6 +30,13 @@
2630
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2731

2832

33+
====================BSD-3-Clause====================
34+
In short, Diff Template Library is distributed under so called "BSD license",
35+
36+
37+
====================BSD-3-Clause====================
38+
Please read the file [COPYING](https://github.com/cubicdaiya/dtl/blob/master/COPYING).
39+
2940
====================BSD-3-Clause====================
3041
Redistribution and use in source and binary forms, with or without modification,
3142
are permitted provided that the following conditions are met:
@@ -61,14 +72,3 @@ All rights reserved.
6172
====================File: CONTRIBUTORS====================
6273
Tatsuhiko Kubo <cubicdaiya@gmail.com>
6374
Jan Weiß <jan@geheimwerk.de>
64-
65-
66-
====================LicenseRef-scancode-unknown-license-reference====================
67-
Please read the file [COPYING](https://github.com/cubicdaiya/dtl/blob/master/COPYING).
68-
69-
====================LicenseRef-scancode-unknown-license-reference AND BSD-3-Clause====================
70-
In short, Diff Template Library is distributed under so called "BSD license",
71-
72-
73-
====================LicenseRef-scancode-unknown-license-reference AND BSD-3-Clause====================
74-
In short, Diff Template Library is distributed under so called "BSD license",

contrib/libs/dtl/ya.make

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22

33
LIBRARY()
44

5-
LICENSE(
6-
BSD-3-Clause AND
7-
LicenseRef-scancode-unknown-license-reference
8-
)
5+
LICENSE(BSD-3-Clause)
96

107
LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
118

util/datetime/benchmark/gmtime_r/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,7 @@ BENCHMARK_CAPTURE(BM_GmTimeRRandom, last_year, TDuration::Days(365));
5959
BENCHMARK_CAPTURE(BM_gmtime_r_Random, last_year, TDuration::Days(365));
6060
BENCHMARK_CAPTURE(BM_GmTimeRRandom, last_decade, TDuration::Days(3653));
6161
BENCHMARK_CAPTURE(BM_gmtime_r_Random, last_decade, TDuration::Days(3653));
62-
BENCHMARK_CAPTURE(BM_GmTimeRRandom, last_half_centry, TDuration::Days(18262));
62+
BENCHMARK_CAPTURE(BM_GmTimeRRandom, last_half_century, TDuration::Days(18262));
6363
BENCHMARK_CAPTURE(BM_gmtime_r_Random, last_half_century, TDuration::Days(18262));
64+
BENCHMARK_CAPTURE(BM_GmTimeRRandom, last_century, TDuration::Days(36525));
65+
BENCHMARK_CAPTURE(BM_gmtime_r_Random, last_century, TDuration::Days(36525));

yql/essentials/udfs/common/python/bindings/ya.make

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ NO_COMPILER_WARNINGS()
4949

5050
END()
5151

52-
RECURSE_FOR_TESTS(
53-
ut3
54-
)
52+
IF (NOT EXPORT_CMAKE)
53+
RECURSE_FOR_TESTS(
54+
ut3
55+
)
56+
ENDIF()

yql/essentials/udfs/common/stat/ya.make

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ YQL_UDF_CONTRIB(stat_udf)
1616

1717
END()
1818

19-
RECURSE_FOR_TESTS(
20-
ut
21-
)
22-
19+
IF (NOT EXPORT_CMAKE)
20+
RECURSE_FOR_TESTS(
21+
ut
22+
)
23+
ENDIF()

yql/essentials/udfs/common/topfreq/ya.make

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ YQL_UDF_CONTRIB(topfreq_udf)
1616

1717
END()
1818

19-
RECURSE_FOR_TESTS(
20-
test
21-
ut
22-
)
23-
24-
19+
IF (NOT EXPORT_CMAKE)
20+
RECURSE_FOR_TESTS(
21+
test
22+
ut
23+
)
24+
ENDIF()

yt/yt/core/rpc/grpc/channel.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,13 @@ class TChannel
172172
responseHandler->HandleError(std::move(error));
173173
return nullptr;
174174
}
175-
return New<TCallHandler>(
175+
auto callHandler = New<TCallHandler>(
176176
this,
177177
options,
178178
std::move(request),
179179
std::move(responseHandler));
180+
callHandler->Initialize();
181+
return callHandler;
180182
}
181183

182184
void Terminate(const TError& error) override
@@ -258,6 +260,9 @@ class TChannel
258260
, Request_(std::move(request))
259261
, ResponseHandler_(std::move(responseHandler))
260262
, GuardedCompletionQueue_(TDispatcher::Get()->PickRandomGuardedCompletionQueue())
263+
{ }
264+
265+
void Initialize()
261266
{
262267
YT_LOG_DEBUG("Sending request (RequestId: %v, Method: %v.%v, Timeout: %v)",
263268
Request_->GetRequestId(),

yt/yt/core/rpc/grpc/dispatcher.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ class TDispatcher::TImpl
9191
{.ShutdownPriority = GrpcDispatcherThreadShutdownPriority})
9292
, LibraryLock_(std::move(libraryLock))
9393
, GuardedCompletionQueue_(TGrpcCompletionQueuePtr(grpc_completion_queue_create_for_next(nullptr)))
94-
{
95-
Start();
96-
}
94+
{ }
9795

9896
TGuardedGrpcCompletionQueue* GetGuardedCompletionQueue()
9997
{
@@ -178,7 +176,9 @@ class TDispatcher::TImpl
178176
// Initialize grpc only after configuration is done.
179177
auto grpcLock = New<TGrpcLibraryLock>();
180178
for (int index = 0; index < Config_->DispatcherThreadCount; ++index) {
181-
Threads_.push_back(New<TDispatcherThread>(grpcLock, index));
179+
auto dispatcherThread = New<TDispatcherThread>(grpcLock, index);
180+
dispatcherThread->Start();
181+
Threads_.push_back(std::move(dispatcherThread));
182182
}
183183
LibraryLock_ = grpcLock;
184184
Initialized_.store(true);

0 commit comments

Comments
 (0)