https://github.com/etcd-io/etcd
Revision e13b09e4d96c089b8e522e670953bd765c68d0e7 authored by Xiang Li on 10 March 2015, 02:06:26 UTC, committed by Yicheng Qin on 10 March 2015, 16:45:46 UTC
ReleaseLockTo should not release the lock on the WAL segment that is right before the given index. When restarting etcd, etcd needs to read from the WAL segment that has a smaller index than the snapshot index. The correct behavior is that ReleaseLockTo releases the locks w is holding so that w only holds one lock that has an index smaller than the given index.
1 parent 78e0149
Tip revision: e13b09e4d96c089b8e522e670953bd765c68d0e7 authored by Xiang Li on 10 March 2015, 02:06:26 UTC
wal: fix ReleaseLockTo
wal: fix ReleaseLockTo
Tip revision: e13b09e
File | Mode | Size |
---|---|---|
Documentation | ||
Godeps | ||
client | ||
discovery | ||
error | ||
etcdctl | ||
etcdmain | ||
etcdserver | ||
hack | ||
integration | ||
logos | ||
migrate | ||
pkg | ||
proxy | ||
raft | ||
rafthttp | ||
scripts | ||
snap | ||
store | ||
tools | ||
version | ||
wal | ||
.dockerignore | -rw-r--r-- | 5 bytes |
.gitignore | -rw-r--r-- | 107 bytes |
.godir | -rw-r--r-- | 23 bytes |
.header | -rw-r--r-- | 589 bytes |
.travis.yml | -rw-r--r-- | 195 bytes |
CONTRIBUTING.md | -rw-r--r-- | 2.1 KB |
DCO | -rw-r--r-- | 1.4 KB |
Dockerfile | -rw-r--r-- | 47 bytes |
LICENSE | -rw-r--r-- | 11.1 KB |
MAINTAINERS | -rw-r--r-- | 157 bytes |
NOTICE | -rw-r--r-- | 126 bytes |
Procfile | -rw-r--r-- | 1.3 KB |
README.md | -rw-r--r-- | 4.0 KB |
build | -rwxr-xr-x | 591 bytes |
cover | -rwxr-xr-x | 626 bytes |
main.go | -rw-r--r-- | 1.5 KB |
test | -rwxr-xr-x | 1.8 KB |
Computing file changes ...