mirror of https://github.com/perkeep/perkeep.git
e93e4f3822
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 |
||
---|---|---|
.. | ||
hello | ||
publisher |