1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

Reformat all code to coding standard

This commit is contained in:
Andrew Hutchings
2017-10-26 17:18:17 +01:00
parent 4985f3456e
commit 01446d1e22
1296 changed files with 403852 additions and 353747 deletions

View File

@ -39,29 +39,33 @@ namespace primitiveprocessor
void loadUDFs()
{
#ifndef _MSC_VER
int flags = RTLD_NOW;
int flags = RTLD_NOW;
void* libPtr = 0;
void* libPtr = 0;
UDFFcnPtr_t fcnPtr;
UDFFcnPtr_t fcnPtr;
libPtr = dlopen(UdfLibName.c_str(), flags);
libPtr = dlopen(UdfLibName.c_str(), flags);
if (libPtr == 0)
return;
if (libPtr == 0)
return;
unsigned i = 1;
for (;;)
{
ostringstream oss;
oss << "cpfunc" << i;
fcnPtr = (UDFFcnPtr_t)dlsym(libPtr, oss.str().c_str());
if (fcnPtr == 0)
break;
UDFFcnMap[i] = fcnPtr;
i++;
}
cout << "loaded " << UDFFcnMap.size() << " UDF's" << endl;
unsigned i = 1;
for (;;)
{
ostringstream oss;
oss << "cpfunc" << i;
fcnPtr = (UDFFcnPtr_t)dlsym(libPtr, oss.str().c_str());
if (fcnPtr == 0)
break;
UDFFcnMap[i] = fcnPtr;
i++;
}
cout << "loaded " << UDFFcnMap.size() << " UDF's" << endl;
#endif
}