1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-11 12:42:43 +03:00
Files
mariadb-columnstore-engine/utils/idbdatafile/tdriver1.cpp
2016-01-06 14:08:59 -06:00

35 lines
557 B
C++

#include <iostream>
#include <iomanip>
#include <dlfcn.h>
using namespace std;
#include "IDBPolicy.h"
int main(int argc, char** argv)
{
void* dl=0;
#if 0
dl = dlopen("./libjvm.so", RTLD_NOW);
if (!dl)
{
cerr << "dlopen(): " << dlerror() << endl;
return 1;
}
#endif
#if 0
dl = dlopen("./libhdfs.so", RTLD_LAZY|RTLD_GLOBAL);
if (!dl)
{
cerr << "dlopen(): " << dlerror() << endl;
return 1;
}
#endif
bool ret = false;
ret = idbdatafile::IDBPolicy::installPlugin("hdfs-20.so");
cout << "ret = " << boolalpha << ret << endl;
return 0;
}