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 feacad5

Browse files
committedJul 8, 2015
lock blockstore for pin add
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
1 parent ff96a37 commit feacad5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎core/commands/pin.go

+3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ on disk.
5050
return
5151
}
5252

53+
unlock := n.Blockstore.RLock()
54+
defer unlock()
55+
5356
// set recursive flag
5457
recursive, found, err := req.Option("recursive").Bool()
5558
if err != nil {

0 commit comments

Comments
 (0)
Please sign in to comment.