MCPcopy Create free account
hub / github.com/MariaDB/server / reset

Method reset

plugin/handler_socket/client/hslongrun.cpp:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 }
36 }
37 void reset() {
38 if (db) {
39 mysql_close(db);
40 }
41 if ((db = mysql_init(0)) == 0) {
42 fatal_abort("failed to initialize mysql client");
43 }
44 }
45 operator MYSQL *() const { return db; }
46 private:
47 MYSQL *db;

Callers 3

runMethod · 0.45
show_mysql_errorMethod · 0.45
hs_longrun_mainFunction · 0.45

Calls 2

mysql_closeFunction · 0.85
fatal_abortFunction · 0.85

Tested by

no test coverage detected