Merge pull request #62230 from ClickHouse/revert-62050-vdimir/dictioary_reload_twice_on_start2

Revert "Resubmit 'Update invalidate_query_response on dictionary startup'"
This commit is contained in:
Raúl Marín 2024-04-03 12:36:52 +02:00 committed by GitHub
commit 3b877c3624
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -997,14 +997,6 @@ private:
if (!new_object && !new_exception)
throw Exception(ErrorCodes::LOGICAL_ERROR, "No object created and no exception raised for {}", type_name);
if (!info->object && new_object)
{
/// If we loaded the object for the first time then we should set `invalidate_query_response` to the current value.
/// Otherwise we will immediately try to reload the object again despite the fact that it was just loaded.
bool is_modified = new_object->isModified();
LOG_TRACE(log, "Object '{}' was{} modified", name, (is_modified ? "" : " not"));
}
/// Saving the result of the loading.
{
LoadingGuardForAsyncLoad lock(async, mutex);