perkeep/pkg/client
Brad Fitzpatrick e93e4f3822 Fix deadlock in search/index.
The describe requests were launching a storm of RLocks which weren't
safe in the presence of goroutines trying to acquire write locks.

Instead, make the corpus locking the responsibility of the caller and
add Lock/Unlock/RLock/RUnlock methods to the index and move locking up
a level.

This also adds a fair bit of context.Context plumbing which was used
in earlier debugging.

Fixes camlistore/camlistore#709

Change-Id: I8d7254d1e1da541f8c080d62f5408aac807fd3b1
2016-04-22 14:57:10 -07:00
..
android add canonical import paths 2016-03-13 19:57:14 -07:00
client.go Fix deadlock in search/index. 2016-04-22 14:57:10 -07:00
config.go Delete misc unused objects 2016-04-06 17:59:51 +02:00
config_test.go
enumerate.go Remove pkg/context 2015-12-12 23:09:02 +01:00
get.go pkg/types: remove 2016-02-05 18:28:47 +01:00
ignored_test.go Misc syntax cleanup found by gosimple. 2016-04-04 17:19:57 +02:00
remove.go gofmt 2014-03-20 12:29:45 -07:00
stat_test.go httputil: add DecodeJSON and CloseBody helpers, then use them everywhere 2014-01-28 22:00:52 -08:00
stats.go
transport_test.go pkg/client: fix transport tests for fba8b457de 2016-01-07 15:50:47 +01:00
upload.go Delete misc unused objects 2016-04-06 17:59:51 +02:00
upload_test.go pkg/client: set camliType, use correct blobref 2016-01-06 17:44:08 +01:00