vitess-gh/go/mysql
Sugu Sougoumarane d8b897afb0 tabletserver test: Fix up faking scheme
I found a few problems and shortcomings in the mocks:
1. A lock was being held while connecting to mysql, which should
be avoided.
3. Tests depended on a global variable (DefaultDB) being initialized
to different values at the beginning of each test. This would prevent
parallelization.
2. There was no way to use a real mysql connection in tests once
a fakesqldb was setup, which is needed for the queryservice tests
to be ported to go.

In the new scheme, I've added an Engine field to ConnParams. If it's
empty, then the default (MySQL) connection is used without locks.
If there is a name, then we use the map where other test engines
are registered.

The next change will convert the memcache faking to a similar scheme.
2015-09-22 16:28:44 -07:00
..
proto Changing Sql in binlog to always be a string too. 2015-09-11 07:53:47 -07:00
mysql.go tabletserver test: Fix up faking scheme 2015-09-22 16:28:44 -07:00
vtmysql.c tabletserver: New connection pool and connection 2015-02-05 13:20:15 -08:00
vtmysql.h Fix build issue with mysql.go 2015-04-24 15:03:22 -07:00
vtmysql_internals.h Implement vio_socket_shutdown for MySQL 5.6. 2015-04-22 14:21:40 -07:00