1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-04-18 21:44:02 +03:00
2022-01-21 16:43:49 +00:00

38 lines
617 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;
}