This commit consists only of the changes from running the following:
```
find go -name '*.go' | xargs -n 10 -- sed -i -r -e \
's,"github.com/youtube/vitess/go/,"vitess.io/vitess/go/,'
```
Please refer to #2694 and #2670 for motivation and reasoning for
this change.
I've tried to follow best practice in inserting the copyright
headers. In other open source projects, not all files carry
the notice. For example documentation doesn't. I've followed
similar ground rules.
I did not change the php because there is a separate LICENSE
file there by Pixel Federation. We'll first need to notify
them our intent before changing anything there.
As for the presubmit check, it's going to be non-trivial
because of the number of exceptions, like file types,
directories and generated code. So, it will have to be
a separate project.
In go 1.5 empty strings have a unique representation. So, we
change hack.go to use the go-defined way rather than our own.
Some connection error strings have changed. Changed memcache
test to be more agnostic of that.
A new warning was printed for counting_listener_test.go, which indicated
a minor bug. Fixed.
- memcache connection does not support the possibly racy
IsClosed function any more.
- Got rid of the connection wrapper for CachePool. We just
use *memcache.Connection instead.
- Callers of Get call Put instead of going through the
Recycle wrapper. If there was an error, they close conn
and set it to nil. This makes it easier to reason about race
conditions.
- Deleted obsolete GenericCache.
- Remove spammy warning message from event streamer.
- Fix panic on double-close of memcache connection.
- Disallow non-identifier table names even if it's back-quoted.
Memcache connections can hang under system duress. Adding timeouts
to make sure we can recover if stuff like this happens.
Also, connections are now closed if there is any kind of low level
error. This will allow the connection pool to replace them.
schema: disallow caching for tables with fixed length binary columns
update_stream: allow char columns in primary key
inserts: allow inserts with unspecified columns lists
more reliable ddl throttle scheme
stats: track row not found separately from misses