mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-05-28 13:01:26 +03:00
MCOL-962 formating
This commit is contained in:
parent
2bdcb159ed
commit
43f322ea2f
@ -1824,7 +1824,7 @@ __declspec(dllexport)
|
|||||||
#endif
|
#endif
|
||||||
// Return 1 if system is ready for reads or 0 if not.
|
// Return 1 if system is ready for reads or 0 if not.
|
||||||
long long mcssystemready(UDF_INIT* initid, UDF_ARGS* args,
|
long long mcssystemready(UDF_INIT* initid, UDF_ARGS* args,
|
||||||
char* is_null, char* error)
|
char* is_null, char* error)
|
||||||
{
|
{
|
||||||
long long rtn = 0;
|
long long rtn = 0;
|
||||||
Oam oam;
|
Oam oam;
|
||||||
@ -1853,7 +1853,7 @@ __declspec(dllexport)
|
|||||||
#endif
|
#endif
|
||||||
my_bool mcssystemready_init(UDF_INIT* initid, UDF_ARGS* args, char* message)
|
my_bool mcssystemready_init(UDF_INIT* initid, UDF_ARGS* args, char* message)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
@ -1868,17 +1868,17 @@ __declspec(dllexport)
|
|||||||
#endif
|
#endif
|
||||||
// Return non-zero if system is read only; 0 if writeable
|
// Return non-zero if system is read only; 0 if writeable
|
||||||
long long mcssystemreadonly(UDF_INIT* initid, UDF_ARGS* args,
|
long long mcssystemreadonly(UDF_INIT* initid, UDF_ARGS* args,
|
||||||
char* is_null, char* error)
|
char* is_null, char* error)
|
||||||
{
|
{
|
||||||
long long rtn = 0;
|
long long rtn = 0;
|
||||||
DBRM dbrm(true);
|
DBRM dbrm(true);
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (dbrm.getSystemSuspended())
|
if (dbrm.getSystemSuspended())
|
||||||
{
|
{
|
||||||
rtn = 1;
|
rtn = 1;
|
||||||
}
|
}
|
||||||
if (dbrm.isReadWrite()) // Returns 0 for writable, 5 for read only
|
if (dbrm.isReadWrite()) // Returns 0 for writable, 5 for read only
|
||||||
{
|
{
|
||||||
rtn = 2;
|
rtn = 2;
|
||||||
@ -1897,7 +1897,7 @@ __declspec(dllexport)
|
|||||||
#endif
|
#endif
|
||||||
my_bool mcssystemreadonly_init(UDF_INIT* initid, UDF_ARGS* args, char* message)
|
my_bool mcssystemreadonly_init(UDF_INIT* initid, UDF_ARGS* args, char* message)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
Loading…
x
Reference in New Issue
Block a user