Skip to content

Commit

Permalink
Merge pull request #13 from mbilal92/main
Browse files Browse the repository at this point in the history
fix concurrent read/write in FindOwnerInt32ID
  • Loading branch information
thakurajayL committed Nov 8, 2023
2 parents fd4d121 + be369b5 commit 2a78831
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drsm/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ func (d *Drsm) ReleaseInt32ID(id int32) error {
}

func (d *Drsm) FindOwnerInt32ID(id int32) (*PodId, error) {
mutex.Lock()
defer mutex.Unlock()
chunkId := id >> 10
chunk, found := d.globalChunkTbl[chunkId]
if found == true {
Expand Down

0 comments on commit 2a78831

Please sign in to comment.