Commit Graph

5 Commits

Author SHA1 Message Date
Brad Fitzpatrick db912bbb94 cmd/camtool: add basic describe --at flag
The TODO for more git-like time styles remains.

Change-Id: Iddba599644711e0cabf7bf85ee39150f25e934e6
2016-04-24 08:46:40 -07:00
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
mpl e0d719ba21 pkg/types: remove
Most of it replaced with vendor/go4.org/types and
vendor/go4.org/readerutil

u32 went where needed in pkg/blobserver/*
invertedBool went in pkg/types/serverconfig
atomics64 went in pkg/fs

Change-Id: I230426cda35be4b45ed67e869f14e6fdae89be22
2016-02-05 18:28:47 +01:00
Brad Fitzpatrick ca58231336 camtool: remove duplicated code
Change-Id: I2009b132a1c10e60132333b9942aa4b5943b3932
2014-02-09 15:48:07 -08:00
Brad Fitzpatrick d3b0e933b9 camtool: add describe command
Change-Id: I956c4a76f00bc96f2e5f2b1e5b19a1b656dd1585
2014-01-11 16:46:03 -08:00