You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
Made the cloud IO lib a plugin to the IDB filesystem stuff.
It loads correctly.
This commit is contained in:
@ -55,7 +55,7 @@ bool IDBFactory::installDefaultPlugins()
|
||||
|
||||
// TODO: use the installPlugin fcn below instead of declaring this statically, then remove the dependency
|
||||
// IDBDatafile -> cloudio
|
||||
s_plugins[IDBDataFile::CLOUD] = FileFactoryEnt(IDBDataFile::CLOUD, "cloud", new SMFileFactory(), new SMFileSystem());
|
||||
//s_plugins[IDBDataFile::CLOUD] = FileFactoryEnt(IDBDataFile::CLOUD, "cloud", new SMFileFactory(), new SMFileSystem());
|
||||
|
||||
return false;
|
||||
}
|
||||
@ -100,6 +100,14 @@ bool IDBFactory::installPlugin(const std::string& plugin)
|
||||
#endif
|
||||
}
|
||||
|
||||
vector<IDBDataFile::Types> IDBFactory::listPlugins()
|
||||
{
|
||||
vector<IDBDataFile::Types> ret;
|
||||
for (FactoryMap::iterator it = s_plugins.begin(); it != s_plugins.end(); ++it)
|
||||
ret.push_back(it->first);
|
||||
return ret;
|
||||
}
|
||||
|
||||
IDBDataFile* IDBFactory::open(IDBDataFile::Types type, const char* fname, const char* mode, unsigned opts, unsigned colWidth)
|
||||
{
|
||||
if ( s_plugins.find(type) == s_plugins.end() )
|
||||
|
Reference in New Issue
Block a user