зеркало из https://github.com/github/vitess-gh.git
tabletserver: fetch memcached path from vttest
The path was previously hardcoded in a non-customizable file. It's now moved to environment.go.
This commit is contained in:
Родитель
e56c61e389
Коммит
16f50123f2
|
@ -179,7 +179,7 @@ func TestMain(m *testing.M) {
|
|||
}
|
||||
|
||||
tsConfig = tabletserver.DefaultQsConfig
|
||||
tsConfig.RowCache.Binary = "memcached"
|
||||
tsConfig.RowCache.Binary = vttest.MemcachedPath()
|
||||
tsConfig.RowCache.Socket = path.Join(os.TempDir(), "memcache.sock")
|
||||
|
||||
mysqld := mysqlctl.NewMysqld(
|
||||
|
|
|
@ -21,6 +21,11 @@ func launcherPath() (string, error) {
|
|||
return path.Join(vttop, "py/vttest/run_local_database.py"), nil
|
||||
}
|
||||
|
||||
// MemcachedPath returns the path to the memcached binary.
|
||||
func MemcachedPath() string {
|
||||
return "memcached"
|
||||
}
|
||||
|
||||
func vtgateProtocol() string {
|
||||
return "grpc"
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче