Граф коммитов

30 Коммитов

Автор SHA1 Сообщение Дата
yuxiaobo 03e83d6c30 add license in /go file
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
2019-10-21 22:30:02 +08:00
SataQiu dddfc6f7b8 fix some grammar issues
Signed-off-by: SataQiu <qiushida@beyondcent.com>
2019-04-15 22:43:28 +08:00
deepthi 86474bbd59 staticcheck: packages/files missed during first pass
Signed-off-by: deepthi <deepthi@planetscale.com>
2019-03-07 11:51:31 -08:00
Anthony Yeh 6914580ad5
Rewrite imports to new custom URL.
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/,'
```
2018-02-27 12:00:33 -08:00
Sugu Sougoumarane 7af23e1dde license: BSD->Apache v2.0
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.
2017-05-06 00:38:56 -07:00
Sugu Sougoumarane eddd59dfc3 go 1.5 prep
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.
2015-07-31 09:10:57 -07:00
Shengzhe Yao 5fca7b0aee add CacheService interface
CacheService is an interface for cache services like memcache.
2015-03-27 17:45:58 -07:00
Anthony Yeh 22381dd7cf Deflake memcache unit test.
It also runs 3x faster now in the happy path.
2014-10-29 14:53:30 -07:00
Anthony Yeh a91d8823ad Add or fix package comments for reusable packages. 2014-09-24 14:35:23 -07:00
Sugu Sougoumarane 7cc674fcb4 Simplified rowcache connection stack
- 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.
2014-09-09 22:22:52 -07:00
Sugu Sougoumarane be0bae90ba misc bug fixes
- 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.
2014-08-29 13:14:58 -07:00
Sugu Sougoumarane 7ffe79f1f8 rowcache: add timeout for memcache
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.
2014-08-26 22:39:10 -07:00
Anthony Yeh 9b4f1a8dc9 Skip long tests in "go test -short" mode. 2014-07-22 23:52:38 -07:00
Sugu Sougoumarane 5789e34650 bson: convert custom marshalers to new API 2014-02-28 20:50:42 -08:00
Damian Gryski 9381a0a57c all: make composite literals use field-keyed elements 2013-10-19 14:38:22 +02:00
Liang Guo d0092b04f0 Export memcache stats, table stats and query stats through stats package. 2013-09-08 22:22:52 -07:00
Liang Guo 2ed2a83699 Export Memcache internal stats through stats package. 2013-09-03 17:00:43 -07:00
Ryszard Szopa 4ccb53c557 Makefile and test improvements. 2013-07-26 17:07:54 -07:00
Sugu Sougoumarane 3ac98e5b31 handle 0 items requested for memcache Get 2013-07-16 13:51:13 -07:00
Sugu Sougoumarane c7c2a291d5 Use memcache multi-gets for higher rowcache efficiency 2013-07-14 01:23:53 -07:00
Shruti Patil 5192ce2e33 Added FlushAll command to memcache api and related test. 2012-12-12 15:08:28 -08:00
Ric Szopa 02115e7048 Change the license notice to be shorter and refer to the license file. 2012-06-07 11:55:06 -07:00
Sugu Sougoumarane e71dcfe7c8 optimization stagte2: chunked writer for bson 2012-04-25 13:40:45 -07:00
Sugu Sougoumarane e2e3e0ef00 copyright deviolation 2012-04-01 21:58:56 -07:00
Sugu Sougoumarane 1f39441929 rowcache: simpler, more robust, and less chatty invalidation scheme. 2012-04-01 21:56:48 -07:00
Sugu Sougoumarane cc4d3d2878 tabletserver: InvalidateForDDL
memcache: export stats
2012-03-29 16:31:10 -07:00
Sugu Sougoumarane 5c5695e7ec use fnv hash to generate unique prefixes for row cache
fix some tests that were failing on slow dbs
2012-03-28 14:23:04 -07:00
Sugu Sougoumarane 35229bf0c1 shorten the life of invalidation objects in memcache 2012-03-27 15:59:19 -07:00
Sugu Sougoumarane bd24342935 memcache: bug fix on large gets
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
2012-03-24 12:57:06 -07:00
Sugu Sougoumarane 6831be96fa rowcache: almost done! 2012-03-20 17:33:11 -07:00