招牌疯子
afed8cf044
store: fixed clone error for store stats.
2015-03-20 12:31:47 +08:00
Xiang Li
d459ae0df3
store: remove unused ACL field
2015-02-28 11:46:21 -08:00
Xiang Li
a4dab7ad75
*: do not block etcdserver when encoding store into json
...
Encoding store into json snapshot has quite high CPU cost. And it
will block for a while. This commit makes the encoding process non-
blocking by running it in another go-routine.
2015-02-28 11:41:58 -08:00
Barak Michener
92dca0af0f
*: remove shadowing of variables from etcd and add travis test
...
We've been bitten by this enough times that I wrote a tool so that
it never happens again.
2015-02-17 16:31:42 -05:00
Xiang Li
9776e6d082
store: fix modifiedindex in node clone
2015-02-05 22:26:52 -08:00
Yicheng Qin
3ac0298bd0
store: set readonly to pre-defined namespaces
2015-02-04 16:47:08 -08:00
Yicheng Qin
f13c7872d5
etcdserver: register pre-defined namespaces in store
2015-02-04 16:33:40 -08:00
Jonathan Boulle
f1ed69e883
*: switch to line comments for copyright
...
Build tags are not compatible with block comments.
Also adds copyright header to a few places it was missing.
2015-01-26 09:53:30 -08:00
Yicheng Qin
c104ca89c2
store: optimize ttlKeyHeap GC
...
It helps to recycle nodes in heap array, whose value can be unlimited
long.
2015-01-20 12:01:57 -08:00
Xiang Li
773f112a5d
store: return utc time to user
2014-12-11 16:24:33 -08:00
Xiang Li
793cb095b0
store: fix race in watcher_hub
...
Get the lock before modifing the global objects in the hub.
2014-12-05 12:09:48 -08:00
Yicheng Qin
a910d8ba9f
store: copy Nodes correctly in NodeExtern.Clone
2014-10-29 16:54:09 -07:00
Jonathan Boulle
84be7c1e9e
etcdserver/store: clone Events before modifying
2014-10-29 11:54:35 -07:00
Jonathan Boulle
7a4d42166b
*: add license header to all source files
2014-10-17 15:41:22 -07:00
Jonathan Boulle
1456ae4453
store: restore minExpireTime check and advance FakeClock appropriately
2014-10-17 10:05:29 -07:00
Jonathan Boulle
e0801360d3
godep: update clockwork dependency
2014-10-17 10:05:29 -07:00
Jonathan Boulle
3134658ded
store: switch to fake clock
2014-10-17 10:05:29 -07:00
Jonathan Boulle
5c4edf65f9
store: remove another unused function
2014-10-17 00:07:45 -07:00
Jonathan Boulle
1fa763b47b
store: remove unused function
2014-10-17 00:07:23 -07:00
Jonathan Boulle
70bbf8b470
store: remove more unused code
2014-10-17 00:05:56 -07:00
Jonathan Boulle
2cd6594485
store: remove unused code
2014-10-16 12:28:05 -07:00
Jonathan Boulle
4183b69e12
*: move from third_party to Godep
2014-10-14 00:37:52 -07:00
Jonathan Boulle
a07c51a9c9
store: fix typo "recurisive"
2014-10-08 14:13:38 -07:00
Jonathan Boulle
26160b2154
store: use a larger buffer for eventChan
...
The event channel for watches can drop events too easily in the case of
streaming watches. This increases the buffer to a more useful level.
2014-10-07 01:57:05 -07:00
Jonathan Boulle
1c11f6a144
*: expose etcd-index in watch requests
...
This adds a StartIndex field to the Watcher interface, which represents
the Etcd-Index at which the Watcher is created.
Also refactors the HTTP tests to use a table for most handleWatch tests
2014-10-02 18:10:11 -07:00
Jonathan Boulle
f27b4cbbce
store: add etcd-index tests
2014-09-24 15:04:32 -07:00
Jonathan Boulle
b15fefa8ea
store: use nextIndex where necessary
2014-09-24 14:07:52 -07:00
Jonathan Boulle
5441c6aa54
etcdserver: correct X-Etcd-Index header
...
This adds an EtcdIndex field to store.Event and uses that as the header
instead of the node's modifiedIndex. To facilitate this in a non-racy
way, we set the EtcdIndex while holding the lock.
2014-09-22 18:56:12 -07:00
Jonathan Boulle
e08df4c8d2
store: fix recursive/dir arguments
2014-09-22 14:44:01 -07:00
Jonathan Boulle
f7444ff300
store: convert Watch to interface
2014-09-09 11:17:53 -07:00
Blake Mizerany
f4613dd466
store: remove Root
2014-09-03 09:20:18 -07:00
Blake Mizerany
f8be54b416
...deadlocked...
2014-09-03 09:20:17 -07:00
Yicheng Qin
cc1df691cc
store: fix the bug caused by random iteration order over map
2014-09-03 09:20:08 -07:00
Blake Mizerany
a2b9f9310c
remove pkg/strings
2014-09-03 09:20:06 -07:00
Blake Mizerany
e9a45ae35d
remove goraft
2014-09-03 09:20:05 -07:00
Xiang Li
3fba10c8e6
etcd: add version handlers
2014-09-03 09:19:58 -07:00
Xiang Li
8ea840c19a
store: fix index data race
2014-09-03 09:19:53 -07:00
Xiang Li
b951aaf925
store: check remove func before call it
2014-09-03 09:19:50 -07:00
Yicheng Qin
02ced2c2d7
v1: deprecate v1 support
...
Etcd moves to 0.5 without the support of v1.
2014-09-03 09:19:49 -07:00
Xiang Li
973bde9a07
feat(get): get from quorum
2014-06-22 21:33:38 -07:00
Xiang Li
516ebdb49e
fix(store): synchronize access to CurrentIndex
2014-05-20 13:53:47 -07:00
Yicheng Qin
fa54866e99
Revert "Merge pull request #631 from metaflow/fix-delete-key-as-directory"
...
This reverts commit b87972713e
, reversing
changes made to bd8d45ce28
.
2014-04-21 17:55:44 -07:00
Mikhail Goncharov
7cebc3999a
api(delete) now you get an error trying to delete files a directory (http.StatusForbidden)
2014-04-21 19:50:57 +07:00
Sam Ghods
3ae0a1e1a6
fix(store.go) include node.dir = true when updating a directory's ttl, fixes coreos/etcd#736
2014-04-17 15:15:41 -07:00
Xiang Li
2dc182189a
Merge pull request #710 from xiangli-cmu/fix_race
...
Fix race
2014-04-14 15:53:04 -04:00
Yicheng Qin
c8de5eee85
fix(server/key): unable to update unexpired ttl
2014-04-14 11:03:46 -07:00
Xiang Li
a9dff278b5
fix(store.go) send event to watcher after we finish modifying it
2014-04-10 23:27:50 -04:00
Tomás Senart
b6053d6a86
Making code formatting consistent.
...
$ gofmt -s -w && goimports -w
2014-03-27 14:19:08 +01:00
Ben Johnson
62b89a128a
Merge branch 'master' of https://github.com/coreos/etcd into proxy
...
Conflicts:
config/config.go
server/peer_server.go
server/transporter.go
tests/server_utils.go
2014-03-24 15:30:14 -07:00
Ben Johnson
174b9ff343
bump(github.com/goraft/raft): 6bf34b9
...
Move from coreos/raft to goraft/raft and update to latest.
2014-03-24 15:09:47 -07:00