mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Removing net emulation out of embedded library
include/mysql.h: Several structures content changed for embedded case include/violite.h: enum_vio_type extended libmysqld/embedded_priv.h: three new funcs added libmysqld/lib_sql.cc: A lot of changes on the way to excude network emulation libmysqld/lib_vio.c: vio structure changed. we're on the way to remove network... libmysqld/libmysqld.c: A lot of changes. sql/ha_myisam.cc: Network sending modified for embedded case. sql/net_pkg.cc: Exclude network from error sending sql/sql_acl.cc: Exclude access permissions checking in embedded case sql/sql_base.cc: Implementation of send_fields got quite different in enbedded case and now placed in lib_sql.cc sql/sql_class.cc: select_send::send_data for embedded case placed in lib_sql sql/sql_class.h: Extra fields added for embedded case sql/sql_parse.cc: remove this out of server sql/sql_show.cc: lots of similar changes to exclude network emulation sql/sql_table.cc: Network emulation excluded BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
This commit is contained in:
@@ -273,6 +273,10 @@ class delayed_insert;
|
||||
#define THD_SENTRY_MAGIC 0xfeedd1ff
|
||||
#define THD_SENTRY_GONE 0xdeadbeef
|
||||
|
||||
#ifdef EMBEDDED_LIBRARY
|
||||
typedef struct st_mysql;
|
||||
#endif
|
||||
|
||||
#define THD_CHECK_SENTRY(thd) DBUG_ASSERT(thd->dbug_sentry == THD_SENTRY_MAGIC)
|
||||
|
||||
/* For each client connection we create a separate thread with THD serving as
|
||||
@@ -287,6 +291,9 @@ public:
|
||||
String packet; // dynamic string buffer used for network I/O
|
||||
struct sockaddr_in remote; // client socket address
|
||||
struct rand_struct rand; // used for authentication
|
||||
#ifdef EMBEDDED_LIBRARY
|
||||
struct st_mysql *mysql;
|
||||
#endif
|
||||
|
||||
/* query points to the current query,
|
||||
thread_stack is a pointer to the stack frame of handle_one_connection(),
|
||||
|
||||
Reference in New Issue
Block a user