perkeep/cmd/camtool
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
..
.gitignore
camtool.go
claims.go
dbinit.go Move remaining stuff in third_party/* to vendor/* 2016-04-20 16:49:15 -07:00
debug.go
describe.go Fix deadlock in search/index. 2016-04-22 14:57:10 -07:00
disco.go
doc.go add canonical import paths 2016-03-13 19:57:14 -07:00
dp_idx_rebuild.go Delete misc unused objects 2016-04-06 17:59:51 +02:00
dumpconfig.go
env.go
exif.go
googinit.go camtool/googinit: use cloud/storage Client instead of googlestorage 2015-12-08 00:11:42 +01:00
index.go
list.go Fix deadlock in search/index. 2016-04-22 14:57:10 -07:00
makestatic.go Fix deadlock in search/index. 2016-04-22 14:57:10 -07:00
mime.go
packblobs.go
search.go camtool search: added -continue flag to complement -limit 2016-04-17 18:52:53 +00:00
searchdoc.go
splits.go
sqlite_cond.go Move remaining stuff in third_party/* to vendor/* 2016-04-20 16:49:15 -07:00
sync.go camtool sync: local path support on Windows 2016-01-11 12:00:37 +01:00
sync_test.go camtool sync: local path support on Windows 2016-01-11 12:00:37 +01:00