mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Fix integration tests
This commit is contained in:
parent
466633729f
commit
822a57cb83
@ -368,7 +368,7 @@ void Session::authenticate(const Credentials & credentials_, const Poco::Net::So
|
|||||||
|
|
||||||
void Session::isUserStillValid()
|
void Session::isUserStillValid()
|
||||||
{
|
{
|
||||||
if (user->valid_until)
|
if (user && user->valid_until)
|
||||||
{
|
{
|
||||||
const time_t now = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
|
const time_t now = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ public:
|
|||||||
void authenticate(const Credentials & credentials_, const Poco::Net::SocketAddress & address_);
|
void authenticate(const Credentials & credentials_, const Poco::Net::SocketAddress & address_);
|
||||||
|
|
||||||
// Checks if user valid_until is less than current time.
|
// Checks if user valid_until is less than current time.
|
||||||
// Throws exception otherwise.
|
// Throws exception if valid_until is higher than current time.
|
||||||
void isUserStillValid();
|
void isUserStillValid();
|
||||||
|
|
||||||
/// Writes a row about login failure into session log (if enabled)
|
/// Writes a row about login failure into session log (if enabled)
|
||||||
|
@ -415,6 +415,7 @@ void TCPHandler::runImpl()
|
|||||||
CurrentThread::attachInternalProfileEventsQueue(state.profile_queue);
|
CurrentThread::attachInternalProfileEventsQueue(state.profile_queue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!is_interserver_mode)
|
||||||
session->isUserStillValid();
|
session->isUserStillValid();
|
||||||
|
|
||||||
query_context->setExternalTablesInitializer([this] (ContextPtr context)
|
query_context->setExternalTablesInitializer([this] (ContextPtr context)
|
||||||
|
Loading…
Reference in New Issue
Block a user