Less diff

This commit is contained in:
alesapin 2019-10-21 17:20:42 +03:00
parent fc05110d66
commit f7043c38bd
6 changed files with 3 additions and 21 deletions

View File

@ -3,7 +3,7 @@
#include <Core/Types.h>
#include <Parsers/IAST_fwd.h>
#include <Storages/IStorage_fwd.h>
#include <Dictionaries/IDictionary_fwd.h>
#include <Dictionaries/IDictionary.h>
#include <Common/Exception.h>
#include <ctime>

View File

@ -16,7 +16,7 @@ namespace DB
{
struct IDictionaryBase;
using DictionaryPtr = std::shared_ptr<IDictionaryBase>;
using DictionaryPtr = std::unique_ptr<IDictionaryBase>;
struct DictionaryStructure;
class ColumnString;
@ -57,7 +57,7 @@ struct IDictionaryBase : public IExternalLoadable
virtual std::exception_ptr getLastException() const { return {}; }
DictionaryPtr shared_from_this()
std::shared_ptr<IDictionaryBase> shared_from_this()
{
return std::static_pointer_cast<IDictionaryBase>(IExternalLoadable::shared_from_this());
}

View File

@ -1,14 +0,0 @@
#pragma once
#include <Core/Types.h>
#include <set>
#include <memory>
namespace DB
{
struct IDictionaryBase;
using DictionaryPtr = std::shared_ptr<IDictionaryBase>;
}

View File

@ -761,7 +761,6 @@ private:
else
{
/// Perform the loading immediately.
/// Deadlock when we try to load dictionary from dictionary on localhost
doLoading(name, loading_id, false);
}
}

View File

@ -13,7 +13,6 @@ namespace DB
using LoadablesConfigurationPtr = Poco::AutoPtr<Poco::Util::AbstractConfiguration>;
/// Base interface for configurations source for Loadble objects, which can be
/// loaded with ExternalLoader. Configurations may came from filesystem (XML-files),
/// server memory (from database), etc. It's important that main result of this class

View File

@ -43,8 +43,6 @@
#include <Databases/DatabaseFactory.h>
#include <Databases/IDatabase.h>
#include <Dictionaries/DictionaryFactory.h>
#include <Compression/CompressionFactory.h>
#include <Interpreters/InterpreterDropQuery.h>