Fix arcadia build

This commit is contained in:
Dmitrii Kovalkov 2021-08-30 12:19:13 +03:00
parent af709ab9a0
commit 2c8e2c6995
5 changed files with 44 additions and 1 deletions

View File

@ -23,6 +23,7 @@ SRCS(
client/QueryFuzzer.cpp client/QueryFuzzer.cpp
client/ConnectionParameters.cpp client/ConnectionParameters.cpp
client/Suggest.cpp client/Suggest.cpp
client/TestHint.cpp
extract-from-config/ExtractFromConfig.cpp extract-from-config/ExtractFromConfig.cpp
server/Server.cpp server/Server.cpp
server/MetricsTransmitter.cpp server/MetricsTransmitter.cpp

27
src/Backups/ya.make Normal file
View File

@ -0,0 +1,27 @@
# This file is generated automatically, do not edit. See 'ya.make.in' and use 'utils/generate-ya-make' to regenerate it.
OWNER(g:clickhouse)
LIBRARY()
PEERDIR(
clickhouse/src/Common
)
SRCS(
BackupEntryConcat.cpp
BackupEntryFromAppendOnlyFile.cpp
BackupEntryFromImmutableFile.cpp
BackupEntryFromMemory.cpp
BackupEntryFromSmallFile.cpp
BackupFactory.cpp
BackupInDirectory.cpp
BackupRenamingConfig.cpp
BackupSettings.cpp
BackupUtils.cpp
hasCompatibleDataToRestoreTable.cpp
renameInCreateQuery.cpp
)
END()

14
src/Backups/ya.make.in Normal file
View File

@ -0,0 +1,14 @@
OWNER(g:clickhouse)
LIBRARY()
PEERDIR(
clickhouse/src/Common
)
SRCS(
<? find . -name '*.cpp' | grep -v -F tests | grep -v -F examples | grep -v -F fuzzers | sed 's/^\.\// /' | sort ?>
)
END()

View File

@ -288,7 +288,7 @@ void Session::authenticate(const Credentials & credentials_, const Poco::Net::So
#if defined(ARCADIA_BUILD) #if defined(ARCADIA_BUILD)
/// This is harmful field that is used only in foreign "Arcadia" build. /// This is harmful field that is used only in foreign "Arcadia" build.
if (const auto * basic_credentials = dynamic_cast<const BasicCredentials *>(&credentials_)) if (const auto * basic_credentials = dynamic_cast<const BasicCredentials *>(&credentials_))
session_client_info->current_password = basic_credentials->getPassword(); prepared_client_info->current_password = basic_credentials->getPassword();
#endif #endif
} }

View File

@ -5,6 +5,7 @@ LIBRARY()
PEERDIR( PEERDIR(
clickhouse/src/Access clickhouse/src/Access
clickhouse/src/AggregateFunctions clickhouse/src/AggregateFunctions
clickhouse/src/Backups
clickhouse/src/Bridge clickhouse/src/Bridge
clickhouse/src/Client clickhouse/src/Client
clickhouse/src/Columns clickhouse/src/Columns