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
a9dff278b5
fix(store.go) send event to watcher after we finish modifying it
2014-04-10 23:27:50 -04:00
Mikhail Goncharov
074c78d725
fix(store): corrected CAS and CAD fail cause in response
...
specifically when both prevIndex and prevValue are provided
2014-03-08 14:50:34 +07:00
evan-gu
9cfd8c5f0b
fix(store): make NodeExtern.Value a *string
...
Before this change if the value of a Node was "" it would get dropped from the json
encoding and the Node.Value field would be missing. Fix this problem by making
NodeExtern.Value a *string so that an empty string will be encoded but a nil value
will drop the field.
2014-02-18 00:50:44 -05:00
Brandon Philips
2a2714a4bf
Merge pull request #514 from cenkalti/prevNode
...
feat(prevNode): add "prevNode" to "Set" response
2014-02-07 12:04:18 -08:00
evan-gu
8d2a8e1c7a
fix some typos in comments in store.go
2014-02-04 14:17:44 -05:00
Cenk Alti
3ec7004421
feat(prevNode): add "prevNode" to "Set" response
2014-01-29 17:30:33 -08:00
Brandon Philips
1b00c449a5
Revert "Better error message when setting values on directories"
...
This reverts commit d13dd50d5107b10eaeda734d971cd4512cb4a304.
2014-01-23 11:22:11 -08:00
Kelsey Hightower
d13dd50d51
Better error message when setting values on directories
...
Without this commit etcd returns the following error message when
setting values on directories:
{
"errorCode":102,
"message":"Not a file",
"cause":"/postgres",
"index":2
}
While the above error message is accurate it's not very descriptive.
This commit adds a new error code/message which better describes why the
write operation failed. etcd now returns the following:
{
"errorCode":109,
"message":"Cannot set value on directory",
"cause":"/postgres",
"index":2
}
2014-01-22 23:02:33 -08:00
tobz
7a948746a8
fix(store): move logic to handle whether or not to notify (re: hidden keys) entirely into watcher hub
2014-01-22 09:02:42 -05:00
tobz
139f59f7d1
fix(store): properly hide hidden keys from watchers, not just gets
2014-01-21 20:26:56 -05:00
Xiang Li
22a25a18b3
feat(stream watchers) add stream watcher support
2014-01-09 15:28:33 +08:00
Xiang Li
2bfb8f5e4f
Merge pull request #418 from xiangli-cmu/cancel_watcher
...
cancel watcher
2014-01-08 21:34:32 -08:00
Xiang Li
fa3b4a7941
refactor(watcher) change newWatcher to Watch
2014-01-09 13:29:04 +08:00
Xiang Li
189b98c03f
refactor(node_extern.go) remove unused prevValue field
2014-01-01 20:01:29 +08:00
Xiang Li
f46fdbf078
feat(node_extern.go) add prevNode field
2014-01-01 19:50:07 +08:00
Xiang Li
59ccefee0f
fix(watchhub.go) add a lock to protect the hashmap
2013-12-28 14:55:50 +08:00
Xiang Li
5e499456f0
init cancel watcher
2013-12-26 22:06:15 +08:00
Xiang Li
bfa7d54b02
refactor(store.go) handle short condition first
2013-12-25 19:01:04 +08:00
Xiang Li
9cf1fcc987
refactor(compareAndDelete)
2013-12-20 05:10:22 +08:00
Xiang Li
e2fa89d554
merge compareAndDelete
2013-12-19 22:19:49 +08:00
Xiang Li
dba5eb57cf
fix(store.go) report node.path
2013-12-12 10:12:33 -08:00
Xiang Li
06473ba6fe
fix(store.go) expire should also notify all the watchers under the path
2013-12-10 15:17:13 -08:00
Xiang Li
d646d7c16a
tests add tests for dir flag
2013-12-05 20:46:52 -05:00
Xiang Li
b556252358
tests fix all tests
2013-12-05 17:48:32 -05:00
Xiang Li
4ba7d85d56
refactor(update) more clear dir checking
2013-12-05 17:16:44 -05:00
Xiang Li
40d297be66
feat add dir_flag
2013-12-05 17:10:37 -05:00
Xiang Li
c6e1af8321
merge master
2013-12-02 22:36:38 -05:00
Xiang Li
6252037376
fix root should be rdonly
2013-12-01 18:01:24 -05:00
rick
d2d7e37990
implement recursive for CompareAndDelete in the store
2013-12-01 13:38:09 -07:00
Xiang Li
5097a2adee
fix(event_history.go) should not scan prefix
2013-12-01 00:47:23 -05:00
rick
171072c736
add the CompareAndDelete command
2013-11-30 16:24:23 -07:00
rick
90a8f56c96
add compareAndDelete event action
2013-11-30 10:08:25 -07:00
rick
5b739f6166
track CompareAndDelete stats
2013-11-30 10:05:48 -07:00
rick
702cf1cc36
teach store.Store about CompareAndDelete
2013-11-30 10:02:03 -07:00
Xiang Li
67b4c27d5d
refactor change node_repr to node_extern
2013-11-28 21:34:38 -05:00
Xiang Li
b7d07ea5c8
refactor event
2013-11-28 11:33:40 -05:00
Xiang Li
08c59895b5
refactor(Node) do not expose node struct
2013-11-28 11:33:23 -05:00
Ben Johnson
ccc27a61f5
Merge branch '0.2' of https://github.com/coreos/etcd into migration-test
2013-11-12 17:29:58 -05:00
Xiang Li
5abbaf59e3
Merge pull request #292 from xiangli-cmu/fix-ttl
...
WIP: fix ttl
2013-11-11 21:30:32 -08:00
Ben Johnson
d8157472fe
Merge branch '0.2' of https://github.com/coreos/etcd into migration-test
2013-11-11 18:12:24 -05:00
Xiang Li
06f1b7f2e8
refactor change Index to modifiedIndex
2013-11-09 20:49:19 -08:00
Xiang Li
d87e0e93d3
fix get return the last modified index of the node
2013-11-09 19:05:38 -08:00
Xiang Li
6156d5c790
refactor separate etcd index from raft index
2013-11-09 17:55:54 -08:00
Xiang Li
0372cdea23
refactor move sync command into etcd
2013-11-08 16:00:58 -08:00
Brandon Philips
6a074d4f6f
chore(*.go): add copyright notice
2013-11-08 14:04:15 -08:00
Xiang Li
4c1d864095
fix cleanup
2013-11-06 21:27:39 -08:00
Xiang Li
c307b6abca
fix watcher_hub
2013-11-06 21:19:37 -08:00
Xiang Li
55058c64f5
feat wathch for expiring need to be pending
2013-11-05 23:30:48 -08:00