"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "server/auth/store.go" between
etcd-3.5.5.tar.gz and etcd-3.5.6.tar.gz

About: etcd is a distributed reliable key-value store for the most critical data of a distributed system (written in "Go").

store.go  (etcd-3.5.5):store.go  (etcd-3.5.6)
skipping to change at line 373 skipping to change at line 373
tx := be.ReadTx() tx := be.ReadTx()
tx.Lock() tx.Lock()
_, vs := tx.UnsafeRange(buckets.Auth, enableFlagKey, nil, 0) _, vs := tx.UnsafeRange(buckets.Auth, enableFlagKey, nil, 0)
if len(vs) == 1 { if len(vs) == 1 {
if bytes.Equal(vs[0], authEnabled) { if bytes.Equal(vs[0], authEnabled) {
enabled = true enabled = true
} }
} }
as.setRevision(getRevision(tx)) as.setRevision(getRevision(tx))
as.refreshRangePermCache(tx)
tx.Unlock() tx.Unlock()
as.enabledMu.Lock() as.enabledMu.Lock()
as.enabled = enabled as.enabled = enabled
if enabled { if enabled {
as.tokenProvider.enable() as.tokenProvider.enable()
} }
as.enabledMu.Unlock() as.enabledMu.Unlock()
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)