mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
add space in comments
This commit is contained in:
parent
50613c555b
commit
53feb9d973
@ -304,7 +304,7 @@ func (s *Store) Get(key string) ([]byte, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *Store) RawGet(key string) ([]*Response, error) {
|
func (s *Store) RawGet(key string) ([]*Response, error) {
|
||||||
//Update stats
|
// Update stats
|
||||||
s.BasicStats.Gets++
|
s.BasicStats.Gets++
|
||||||
|
|
||||||
key = path.Clean("/" + key)
|
key = path.Clean("/" + key)
|
||||||
@ -351,12 +351,12 @@ func (s *Store) RawGet(key string) ([]*Response, error) {
|
|||||||
// Delete the key
|
// Delete the key
|
||||||
func (s *Store) Delete(key string, index uint64) ([]byte, error) {
|
func (s *Store) Delete(key string, index uint64) ([]byte, error) {
|
||||||
|
|
||||||
//Update stats
|
// Update stats
|
||||||
s.BasicStats.Deletes++
|
s.BasicStats.Deletes++
|
||||||
|
|
||||||
key = path.Clean("/" + key)
|
key = path.Clean("/" + key)
|
||||||
|
|
||||||
//Update index
|
// Update index
|
||||||
s.Index = index
|
s.Index = index
|
||||||
|
|
||||||
node, ok := s.Tree.get(key)
|
node, ok := s.Tree.get(key)
|
||||||
@ -404,7 +404,7 @@ func (s *Store) Delete(key string, index uint64) ([]byte, error) {
|
|||||||
|
|
||||||
// Set the value of the key to the value if the given prevValue is equal to the value of the key
|
// Set the value of the key to the value if the given prevValue is equal to the value of the key
|
||||||
func (s *Store) TestAndSet(key string, prevValue string, value string, expireTime time.Time, index uint64) ([]byte, error) {
|
func (s *Store) TestAndSet(key string, prevValue string, value string, expireTime time.Time, index uint64) ([]byte, error) {
|
||||||
//Update stats
|
// Update stats
|
||||||
s.BasicStats.TestAndSets++
|
s.BasicStats.TestAndSets++
|
||||||
|
|
||||||
resp := s.internalGet(key)
|
resp := s.internalGet(key)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user