MCPcopy Create free account
hub / github.com/Tencent/phxsql / main

Function main

phxsqlproxy/phxsqlproxymain_phxrpc.cpp:61–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59int phxsqlproxymain(int argc, char *argv[], phxsqlproxy::PHXSqlProxyConfig* config);
60
61int main(int argc, char *argv[]) {
62 InitPhxsqlPlugins();
63 InitProxyPlugins();
64
65 phxsqlproxy::PHXSqlProxyConfig * config = new phxsqlproxy::PHXSqlProxyConfig();
66 if (config->ReadFileWithConfigDirPath(argv[1])) {
67 phxsql::LogError("ReadConfig [%s] failed", argv[1]);
68 printf("ReadConfig [%s] failed\n", argv[1]);
69 exit(-1);
70 }
71
72 phxsql::PhxGLog::OpenLog("phxsqlproxy", config->GetSvrLogLevel(), config->GetSvrLogPath(), config->GetSvrLogFileMaxSize());
73
74 return phxsqlproxymain(argc, argv, config);
75}

Callers

nothing calls this directly

Calls 8

InitPhxsqlPluginsFunction · 0.85
InitProxyPluginsFunction · 0.85
LogErrorFunction · 0.85
phxsqlproxymainFunction · 0.85
GetSvrLogLevelMethod · 0.80
GetSvrLogPathMethod · 0.80
GetSvrLogFileMaxSizeMethod · 0.80

Tested by

no test coverage detected