Commit Graph

18 Commits

Author SHA1 Message Date
Brad Fitzpatrick bf4426e35e types: add EmptyBody
Change-Id: Ic0cc6cae6debb20fbc15bd95692e8565171eae49
2014-03-31 09:36:08 -07:00
Brad Fitzpatrick bfc607fee7 index: reindex blobs when dependent blobs arrive out-of-order
Keep track of missing dependencies both in memory and in the index's
underlying sorted.KeyValue. When we see a dependent blob arrive, see
if we can reindex things.

Fixes camlistore.org/issue/102

Change-Id: I3d8cfc463e4b8c9d158be8f9656e772839b093b9
2014-03-15 08:44:09 -07:00
Tamás Gulácsi 97520583b8 Use 'uint32' instead of 'int64' for blob sizes everywhere.
Not just in blob.SizedRef, but in blobserver.Fetch and
blobserver.FetchStreaming, too.
Blobs have a max size of 10-32 MB anyway, and the index.Corpus is now using
uint32 to save memory.

Change-Id: I1172445c2f9463fdaee55bfe0f1218d44be4aa53
2014-02-08 17:58:12 +01:00
Daniel Erat 5603ea8e0d pkg/index: Index audio duration.
Add pkg/media with code to calculate MPEG audio duration.
Index it in a "durationms" property.

Change-Id: Ifb6251657cadc365ef3f5667a0512fde17575560
2014-01-25 10:40:06 -08:00
mpl 20b9f5d6f1 pkg/types: add InvertedBool
Will be needed for json tagged serverconfig in subsequent commit.

http://camlistore.org/issue/339

Change-Id: I41ae6e9918b23eb9bdb471e402de0415f3499dc3
2014-01-23 22:54:18 +01:00
Bill Thiede 5c884e52ca diskpacked: keep fd open to every pack file.
Bytes read/writen per pack file, as well as per configured diskpacked
configuration are now available as expvars.

Also add reader stat helpers to pkg/types and updated the original
user in server/image.go

Change-Id: Ifc9d76c57aab329d4b947e9a4ef9eac008bc608d
2014-01-20 10:50:42 -08:00
Brad Fitzpatrick 95ea1dfb7d types: make Time3339 zero values be JSON null, back and forth
Change-Id: Iebf3defe041aee71e6d06b73159dbd105b545081
2013-12-20 21:35:30 -08:00
Brad Fitzpatrick 429fa4bf4e Fix API typo: ParseTime3339OrNil, not OrZil
Change-Id: I1255cf4560d133fe5c6128fba0be2d9d4a0c0daa
2013-12-03 21:56:09 -08:00
Brad Fitzpatrick 3fa6d69405 client: be robust against servers/proxies returning compressed content
Change-Id: Id87c26a7d6e6d3f794a5421ece7cd344b10e1a8b
2013-11-24 18:27:41 -08:00
Brad Fitzpatrick a58dcc1e5a diskpacked: re-use fds when possible when reading blobs from pack files.
We could actually do better than this and use the fd already open
from the still-appending file, or just keep one fd open per pack
file.

But this is a start.

Change-Id: I164a9bdf44987c3f057872cc7fdee1735f9e89a9
2013-10-10 20:06:30 -10:00
Brad Fitzpatrick b0bff61d30 types: move ReadSeekCloser types from pkg/blobref to pkg/types
Change-Id: I24e2b2a068d9b09479b145409a3b7e5693dd8ac5
2013-07-28 20:08:55 -07:00
Brad Fitzpatrick 9468e5ba70 More docs. Every package is documented now.
misc.CountingReader moves into readerutil.

pkg/atomics is folded into pkg/types.

pkg/test/testdep is folded into pkg/test, with better name/docs.

Old cruft from pkg/webserver is deleted.

Change-Id: I3f72d8b29804254ef944995fb085837c878f79f5
2013-07-07 21:12:30 -07:00
mpl 481bdf346a blobref: enforce Go1.1 is required,
also types: rm Go1.0 RFC3339Nanos work-around

Change-Id: I9ce8495927fe349e7882f0a7d6c4f0051693fa2c
2013-06-05 01:19:08 +02:00
Brad Fitzpatrick 1b6a0b33fc types: add more time parsing functions
Change-Id: I35ffdd030fbdc87db4821f00fa562580e8205731
2013-02-18 21:30:11 -08:00
Brad Fitzpatrick 7e559039e0 types: add ByTime sorting, renable a test
Change-Id: Ifc80b66630f86cd88e66dfe68f1133696645f1a7
2013-02-18 19:09:27 -08:00
mpl 76d6a101b2 types: make Time3339 work for Go 1 too
Fixes http://code.google.com/p/camlistore/issues/detail?id=109

Change-Id: I4c30a77465e7774a0a867e95767f3e0ef1be7ec6
2013-02-13 18:52:58 +01:00
Brad Fitzpatrick 11e07730ca types: add Time3339.String and fix bug to use RFC3339Nano
Change-Id: Ib86b7ea86d9afe7738fc9a3ee9fa18fd2abef3b1
2013-02-10 12:57:56 -08:00
Brad Fitzpatrick 3605285924 Add pkg/types with types.Time3339; use it in search/handler JSON types
Change-Id: I79bf1484ef8b3548bca2e732f189352bcfbcd6db
2013-02-08 18:10:31 -08:00