blobserver/mongo, missing index on "key"

The mongo blobserver does not ensure an index on "key" key which stores
the blobref.
It is slow and enumerate fails when there are too many blobs
because mongodb can't sort when there are too many results.

Change-Id: Id644a48f93be308007f77cf5ea6b6620acf489bd
Diskpacked: revert append on index .Set error

Seek back and truncate the file to its original size
if index.Set returns error.
As we return the index.Set's error, such appends are treated as failed,
and the application (or the user) will try again.
Such duplicately stored blobs just complicates recovery.

The other part of this CL makes the reindex-diskpacked command
report such duplicately stored blobs just warnings, not errors.

Change-Id: I39f049cd136a2efd840e76a2cfa5d06016a189c3
ui: introduction of tagging controls to new contextual nav bar.

Currently disabled but can be tested via the DEBUG_TAGS flag in index.js. Potential enhancements are documented in tags_control.js. This patch
removes one piece of unused code.

Change-Id: I751fca63fbc93c209628f03a3f3aa6e87d01e309
Merge "ui: introduction of tagging controls to new contextual nav bar."
blobpacked: add maxZipBlobSize accessor, mostly for testing.

But also, in the future it might be possible for blob servers to advertise a larger
max blob size instead of 16 MB, in which case this code could use it.

Change-Id: I5940fad97e228deae502af84dc6d37cdc2b85e49
gofmt

Change-Id: I54b1cc47347eb66dadbc64887e8522f68f263bb9
blobserver: make version of merged enumerate for both Storage and BlobEnumerator

Change-Id: I2b25571d124341dfaee410ee7ce6f46243bdf236
blob: document, clean up ChanPeeker

Change-Id: I7c721f1e3fb81011cf2911be8889dcb9abc66dd5
blobserver: add MergedEnumerate tests

Change-Id: Ie820c6df4851afded0db8f4a58edcd64c1ce4e51
blobserver: used blob.Ref.Less in MergedEnumerate

Change-Id: Id5811c73a5e94eede1a2a21455e7df8be58b828b
blobserver: use sub-context in MergedEnumerate and Less instead of String

Change-Id: I30c8b6a6884b95dea54e0776d312a342ffcced7c
blobpacked: use blobserver.MergedEnumerate

Change-Id: I62160c56860a6433416373c04cedf12a5c4530bc
blobpacked: always fall through to the small storage

Change-Id: I8168bb3692d221e41f6bec053a12f7e5e5a1f667
Merge branch 'master' of https://camlistore.googlesource.com/camlistore
0.9 notes: add UI feature note

Change-Id: Ic0519cd44f23be0d24b9c9fe19276e3ec262e70a
Merge "blobserver/mongo, missing index on "key""
Add sorted/leveldb.

Modify pkg/sorted/kvfile/kvfile.go to not have a named
return in Next - just as in pkg/sorted/leveldb/leveldb.go.

Change-Id: I0d46a86b33d2e1d2992d8a41f08979eb21aaddbb
Merge "Diskpacked: revert append on index .Set error"
Remove kvfile-specific code from diskpacked.

In hope to use leveldb.

Change-Id: Ie9c166d48d6a2c1f52f9cfa29e703d8b8ad7f162
Merge "Add sorted/leveldb."