зеркало из https://github.com/github/vitess-gh.git
e8b87f9469
While testing vttablet-mysqld over TCP, we noticed mysql.Connect sometimes blocks forever if the backend mysqld hit max conns. This patch adds a timeout to this codepath. It defaults to 0 (no timeout) for back compatibility. Signed-off-by: Adam Saponara <as@php.net> |
||
---|---|---|
.. | ||
acl | ||
bucketpool | ||
bytes2 | ||
cache | ||
cacheservice | ||
cmd | ||
event | ||
exit | ||
fileutil | ||
flagutil | ||
hack | ||
history | ||
ioutil2 | ||
json2 | ||
jsonutil | ||
memcache | ||
mysql | ||
netutil | ||
pools | ||
proc | ||
race | ||
ratelimiter | ||
sqlescape | ||
sqltypes | ||
stats | ||
streamlog | ||
sync2 | ||
tb | ||
test/endtoend | ||
testfiles | ||
timer | ||
trace | ||
vt | ||
vtbench | ||
zk/zkctl | ||
README.md |
README.md
This directory contains all the Go code for Vitess.
Most of the packages at the top level are general-purpose and are suitable for use outside Vitess. Packages that are specific to Vitess are in the vt subdirectory. Binaries are in the cmd subdirectory.
Please see GoDoc for a listing of the packages and their purposes.
vt/proto contains the compiled protos for go, one per each directory. When importing these protos (for instance XXX.proto), we rename them on import to XXXpb. For instance:
import (
topodatapb "vitess.io/vitess/go/vt/proto/topodata"
)