Skip to content

Commit

Permalink
Merge pull request #4523 from sysown/v2.x_240421_fixes
Browse files Browse the repository at this point in the history
Fixed a compilation with TEST_AURORA
  • Loading branch information
renecannao authored Apr 24, 2024
2 parents 959c629 + 73b7b54 commit b3fa02a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 58 deletions.
4 changes: 4 additions & 0 deletions lib/MyHGC.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#include "MySQL_HostGroups_Manager.h"

#ifdef TEST_AURORA
static unsigned long long array_mysrvc_total = 0;
static unsigned long long array_mysrvc_cands = 0;
#endif // TEST_AURORA

extern MySQL_Threads_Handler *GloMTH;

Expand Down
4 changes: 0 additions & 4 deletions lib/MySQL_HostGroups_Manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@

using std::function;

#ifdef TEST_AURORA
static unsigned long long array_mysrvc_total = 0;
static unsigned long long array_mysrvc_cands = 0;
#endif // TEST_AURORA

#define SAFE_SQLITE3_STEP(_stmt) do {\
do {\
Expand Down
54 changes: 0 additions & 54 deletions lib/MySrvC.cpp
Original file line number Diff line number Diff line change
@@ -1,58 +1,4 @@
#include "MySQL_HostGroups_Manager.h"
/*
#include "proxysql.h"
#include "cpp.h"
#include "MySQL_PreparedStatement.h"
#include "MySQL_Data_Stream.h"
#include <memory>
#include <pthread.h>
#include <string>
#include <prometheus/counter.h>
#include <prometheus/detail/builder.h>
#include <prometheus/family.h>
#include <prometheus/gauge.h>
#include "prometheus_helpers.h"
#include "proxysql_utils.h"
#define char_malloc (char *)malloc
#define itostr(__s, __i) { __s=char_malloc(32); sprintf(__s, "%lld", __i); }
#include "thread.h"
#include "wqueue.h"
#include "ev.h"
#include <functional>
#include <mutex>
#include <type_traits>
using std::function;
#ifdef TEST_AURORA
static unsigned long long array_mysrvc_total = 0;
static unsigned long long array_mysrvc_cands = 0;
#endif // TEST_AURORA
#define SAFE_SQLITE3_STEP(_stmt) do {\
do {\
rc=(*proxy_sqlite3_step)(_stmt);\
if (rc!=SQLITE_DONE) {\
assert(rc==SQLITE_LOCKED);\
usleep(100);\
}\
} while (rc!=SQLITE_DONE);\
} while (0)
extern ProxySQL_Admin *GloAdmin;
extern MySQL_Threads_Handler *GloMTH;
extern MySQL_Monitor *GloMyMon;
*/

class MySrvConnList;
class MySrvC;
Expand Down

0 comments on commit b3fa02a

Please sign in to comment.