Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit de3f495

Browse files
committedNov 4, 2022
netbs: Add more missing locks
1 parent 6c52bfe commit de3f495

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎markets/retrievaladapter/client_blockstore.go

+3
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ func (a *APIBlockstoreAccessor) RegisterApiStore(sid api.RemoteStoreID, st *lbst
103103
a.remoteStores[sid] = st
104104

105105
st.OnClose(func() {
106+
a.accessLk.Lock()
107+
defer a.accessLk.Unlock()
108+
106109
if _, has := a.remoteStores[sid]; has {
107110
delete(a.remoteStores, sid)
108111
}

0 commit comments

Comments
 (0)
Please sign in to comment.