Skip to content

Commit

Permalink
kv: Mention deadlock risk in ForEachBlob docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechampine committed Mar 16, 2021
1 parent 4ccffb7 commit 11b2401
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion renter/renterutil/metadb.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ type MetaDB interface {
AddBlob(b DBBlob) error
Blob(key []byte) (DBBlob, error)
DeleteBlob(key []byte) error
ForEachBlob(func(key []byte) error) error

// ForEachBlob calls fn on each key. fn must not modify the DB.
ForEachBlob(fn func(key []byte) error) error

AddChunk(m, n int, length uint64) (DBChunk, error)
Chunk(id uint64) (DBChunk, error)
Expand Down

0 comments on commit 11b2401

Please sign in to comment.