@cryptotaxi247 / kubo / commits / 7b675e870

lock blockstore for pin add

License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>

Jeromy committed Jul 8, 2015 at 14:53 UTC 7b675e870c31a8d88e094bf0077be4418077e819
1 file changed +3
core/commands/pin.go
+3
@@ -50,6 +50,9 @@ on disk.
50 return
51 }
52
53 + unlock := n.Blockstore.RLock()
54 + defer unlock()
55 +
56 // set recursive flag
57 recursive, found, err := req.Option("recursive").Bool()
58 if err != nil {