Jeromy
9adcfe7bc2
address concerns from PR
2015-01-21 04:28:02 +00:00
Jeromy
ccb36277dd
fix pinning UX, and add tests to match
2015-01-21 04:28:01 +00:00
Jeromy
b91db68056
update pinning to new semantics, and fix a couple bugs
2015-01-21 04:28:01 +00:00
Juan Batiz-Benet
16690d4af2
race fix: pinner loads with a threadsafe datastore
...
All the datastores used by pinners and so on should be mutex
wrapped. One issue with changing all of them from
ds.Datastore -> ds.ThreadSafeDatastore is that we wrap the
incoming ds.ThreadSafeDatastore with other datastores, which
do not implement the interface. Re-wrapping again causes
double locking. (which may be ok..., but...) any ideas?
2015-01-14 16:15:38 -08:00
Matt Bell
e6091be0c7
pin: Return copies of pinned keys, of each type (direct/indirect/recursive)
2014-11-19 00:53:23 -08:00
Matt Bell
90e5c7ffa8
pin: Added a Pinner#Set function to retrieve the set of pinned keys
2014-11-18 23:02:22 -08:00
Jeromy
ab805f3382
add in a default file hash and cleaned up init functiona bit
2014-11-15 17:50:05 -08:00
Jeromy
8c20921a95
some more docs
2014-11-08 21:42:36 -08:00
Jeromy
c3d04570c0
a few more comments
2014-11-03 03:53:16 +00:00
Jeromy
18ada93ec3
rewrite add command to use dagwriter, moved a pinner into the dagwriter for inline pinning
2014-10-30 04:40:48 +00:00
Emery Hemingway
056699cebe
convert DAGService to an interface
2014-10-25 22:15:19 -04:00
Juan Batiz-Benet
4b01ad0b7c
fixed pin json marshal
2014-10-22 02:55:22 -07:00
Jeromy
edb5a14f79
update datastore paths
2014-10-22 00:33:14 -07:00
Jeromy
3ee3c44d7c
flush!
2014-10-22 00:28:42 -07:00
Jeromy
6f750572cd
add lock to pinner and rework cli
2014-10-22 00:28:41 -07:00
Jeromy
31b0ff0307
add testing for pins
2014-10-22 00:28:41 -07:00
Jeromy
6458ddcd32
flesh out pinning object, needs tests and cli wiring still
2014-10-22 00:28:41 -07:00
Jeromy
4d63820bbe
move indirect pinning to its own structure
2014-10-22 00:26:11 -07:00
Jeromy
51879e9640
implement unpin and add a datastore backed blockset
2014-10-22 00:26:11 -07:00
Jeromy
7cbfbbc0ad
add blockset and bloomfilter and beginnings of pinning service
2014-10-22 00:26:11 -07:00