Commit Graph

6120 Commits

Author SHA1 Message Date
Will Norris f82dc010bc cmd/camtool: output server-config.json string
In addition to outputting the JSON config needed for cloudstorage_test,
also provide the colon-delimited string needed for server-config.json.

Also update URL for Google API Console

Fixes #715

Change-Id: I3784ad3442bcf0c99cb738a3beed7b9e5fbcac68
2016-04-23 15:04:09 -07:00
Mathieu Lonjaret 0c355a18cc Merge "misc/docker: build ignore for standalone programs" 2016-04-22 23:18:02 +00:00
mpl b43cfe22b9 misc/docker: build ignore for standalone programs
Fixes #713

Change-Id: I964939a3d5de6eb0f3ab0321fd7447774751c92d
2016-04-22 16:15:04 -07:00
Brad Fitzpatrick 359ac93fed importer: cache accounts list
Fixes non-stop queries burning CPU in the background.

Fixes #519

Change-Id: I16d7e6d83735acd8e2f96045a9d84dfe06207348
2016-04-22 16:00:25 -07:00
Brad Fitzpatrick 03253d1d3c Merge "Fix deadlock in search/index." 2016-04-22 22:01:45 +00: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 d2f50293cd misc/docker: rm third_party in zip-source
Change-Id: Ica0c61e164390a19944a0b3448b8468761f58402
2016-04-21 15:09:03 -07:00
mpl 07c0c9c797 misc/docker: fix third_party move for docker image
Change-Id: Id8146b3555c2758871e6d13474595165bee646a2
2016-04-21 14:58:19 -07:00
mpl 63d6e384bb path fixes for third_party move
A few more left in in misc/docker that I'll do separately

Related: 75d60962f6

Change-Id: Id5f6a3729e33aca97f8664ca8ef91afc64461891
2016-04-21 12:25:17 -07:00
mpl 8580b811cf pkg/index: make corpus RLock take a context
Also remove extra (deadlocking) RLock in pkg/search.

Updates issue #709

Change-Id: I556a1fbf9217f482b6a51e74c28a019dea8369a2
2016-04-21 11:28:24 -07:00
Brad Fitzpatrick c2e4fc7de6 blobserver/blobpacked: fix TestReindex at Go master
Fixes #710

Change-Id: I0c58900fc566812e1a48c04d3bfba5060c0c4160
2016-04-20 18:51:07 -07:00
Brad Fitzpatrick 290569f9ae blobserver/blobpacked: make TestPackLarge work with Go tip
compress/flate changed at tip. compressed zips can have different
digests now.

Updates camlistore/camlistore#710

Change-Id: Ida572ca88fe4729c57772db85f69876d28c3742f
2016-04-20 17:48:01 -07:00
Brad Fitzpatrick 75d60962f6 Move remaining stuff in third_party/* to vendor/*
Change-Id: Ifbcc02817083cba68d8c1acec3e6ec50e8f61149
2016-04-20 16:49:15 -07:00
Brad Fitzpatrick 618250ea8b serverinit: add /debug/goroutines handler
Change-Id: I07ddecc5f70b11ea2a59760011cbc271e030d2c2
2016-04-20 15:57:25 -07:00
Brad Fitzpatrick 771724119b search: add JSON name for filename on DirConstraint
Change-Id: I5a775a8526ed643311a332e5d75f32e344cf4177
2016-04-20 15:40:23 -07:00
Stephen Searles f2ce28b806 camtool search: added -continue flag to complement -limit
previously, you could use the -limit flag to specify a number of desired
results. this change allows specifying the "continue" token in
subsequent commands without resorting to a raw query.

Change-Id: Ib2ec43bb228e5504fa6d6e4ee58207243f014ab1
2016-04-17 18:52:53 +00:00
Mathieu Lonjaret 9529a7b770 Merge "pkg/fs: osxfuse version check shouldn't depend on map ordering" 2016-04-15 15:46:20 +00:00
Eric Drechsel 4bfbdc7d51
pkg/fs: osxfuse version check shouldn't depend on map ordering
also, use fuse.OSXFUSELocationV3 and V2 for path info
they're exported for this sort of thing

Change-Id: If94024b944c419ced8760d904f521201916a5359
2016-04-13 16:04:52 -07:00
mpl 95ff1f0b8a misc/docker: go 1.6.1
Change-Id: Ib03d0ba711464b4fc18d899ee21fac6195f037ae
2016-04-13 16:35:03 +02:00
Mathieu Lonjaret 4f8911ba92 Merge "misc/docker/release: zip-source.go" 2016-04-11 20:26:18 +00:00
Eric Drechsel f800fbdc0b
remove *.go from .gitignore
some shadowy process has been adding this line to my .gitignore,
and somehow it slipped in to my last commit.
I have no idea what is causing it..

Change-Id: I54c40d81006c3528fd69ae0169e49c130e2e3548
2016-04-11 09:25:04 -07:00
Mathieu Lonjaret 6d8d5f08bc Merge "Update bazil.org/fuse" 2016-04-11 13:27:43 +00:00
Eric Drechsel e0a9699c63
Update bazil.org/fuse
move to vendor
fix (lots) of breakages due to API changes

bazil.org/fuse: 37bfa8be929171feec943f3496bc4befdeaf10db

Change-Id: Ic92faf7585371027f3c521f7a24ae56d70d18547
2016-04-09 12:40:02 -07:00
Mathieu Lonjaret 512a3ce07f Merge "pkg/blobserver/encrypt: delete redundant err check" 2016-04-08 14:03:23 +00:00
Jeremy Schlatter ecfefb748e pkg/blobserver/encrypt: delete redundant err check
err is always nil at this point.

Change-Id: I5dec5e05911c8846badb531a8204894ebac0cdd9
2016-04-07 17:10:48 -07:00
Tamás Gulácsi a2c19c1f42 Drop leveldb-go
Use github.com/syndtr/goleveldb/leveldb/memdb in pkg/sorted memKey.
This was the last usage of code.googe.com/p/leveldb-go.

Hopefully tackles issue #600.

Change-Id: Iadcf7b69557cf4834cb2a4353ed0d2159379f423
2016-04-07 20:19:45 +02:00
mpl 65a769e7de HACKING: new contrib commit message
Change-Id: Icf4d3e05f3c868257353b664068d1bb5dbb53683
2016-04-06 20:24:27 +02:00
mpl 5e705d150f importer/picasa: rm anyErr because never set
anyErr is supposed to track if at any point there was an error in the
importing, so we know whether to mark it as fully successful.
As opposed to e.g. with foursquare, all errors encountered by the picasa
importer are propagated up the call chain, so:

	if err := r.importAlbums(); err != nil {
		return err
	}

is enough to ensure that we set AcctAttrCompletedVersion only if the run
was successful.

Change-Id: I8c5dbbf853b84391af70372f81c08588adb76884
2016-04-06 18:58:45 +02:00
Tamás Gulácsi 7402cc0efd Delete misc unused objects
Using honnef.co/go/unused/cmd/unused

Change-Id: I672b3cb77f09e9bd80dcdc149cde4f7f2939e451
2016-04-06 17:59:51 +02:00
Mathieu Lonjaret 309fee1886 Merge "pkg/netutil: test loopbackIP" 2016-04-05 18:08:45 +00:00
mpl f42699b2ae pkg/netutil: test loopbackIP
Change-Id: I18f84e84549f520d7ff1a87a7c1d487a6a51d9bd
2016-04-05 18:45:17 +02:00
mpl bff04313b0 camput: use wantCapCtime
Technically, we don't need to, because we know that up.fileOpts is always
initialized when using camput file.
But we might as well be clean and consistent with the other options such
as wantVivify and wantFilePermanode.

Change-Id: I0ef157e5ade3095c42cdc288846fda8cf5db8a3c
2016-04-05 16:23:01 +02:00
Mathieu Lonjaret 068be25691 Merge "pkg/httputil: fix checkSystemRoots for Go1.6" 2016-04-04 22:34:07 +00:00
mpl 5445e983ae pkg/httputil: fix checkSystemRoots for Go1.6
Something changed in x509 in Go1.6 so that when verifying an empty Cert,
one now gets the errNotParsed (x509: missing ASN.1 contents; use
ParseCertificate) error, instead of the SystemRootsError.

Since we rely on getting the SystemRootsError to find out that we're on
CoreOS, we now need to verify a non empty cert, when performing this
check.

Fixes issue #705

Change-Id: I40a4f9aa4ef49bbdd3b7b15b127f890e26f31de4
2016-04-05 00:18:16 +02:00
Tamás Gulácsi 8d6b156a0b Misc syntax cleanup found by gosimple.
https://github.com/dominikh/go-simple

Thanks to Dominik Honnef for this great little tool!

Change-Id: I789b3a37e18f535df1ff0da47c0366ed01b2429e
2016-04-04 17:19:57 +02:00
mpl 749e693bd2 vendor: update golang.org/x/oauth2
rev 2897dcade18a126645f1368de827f1e613a60049

Change-Id: Iadfe929304564e2b6f0ff421a19295abd83ffd78
2016-03-25 18:25:26 +01:00
Brad Fitzpatrick 1d9545ca11 Merge "C+A: add Daniel Heath (Individual CLA)" 2016-03-24 06:11:49 +00:00
Brad Fitzpatrick 64c6b8f2c9 Merge "doc/search-ui.txt: Strip trailing whitespace" 2016-03-24 06:10:55 +00:00
Brad Fitzpatrick 4899bf6597 Merge "website: document importers in server-config" 2016-03-24 06:10:39 +00:00
Daniel Heath dab30bddb9 doc/search-ui.txt: Strip trailing whitespace
Change-Id: I952d04ad08f7284a0babf4e15b7de829b34cad69
2016-03-24 15:23:51 +11:00
Daniel Heath a48a240cfa website: document importers in server-config
Change-Id: I314a1be002ea5983a52e0e4bf2a8e8d7b1e5d2f1
2016-03-24 15:22:22 +11:00
Daniel Heath 85bf99a729 C+A: add Daniel Heath (Individual CLA)
Change-Id: Ib806b63a59630572c0b77e162daef0871ec311b4
2016-03-24 15:20:12 +11:00
Daniel Heath 8bb6711f5f Document substring matching for attribute search
Change-Id: I650c94d24fc8c351ac25bb6503c2a884e03f8306
2016-03-22 07:58:00 +11:00
Mathieu Lonjaret 1c08a41322 Merge "ui: renamed "Search roots" to "Favorites"" 2016-03-19 00:12:27 +00:00
Mathieu Lonjaret 724814d5c4 Merge "web UI: port Directory view to React" 2016-03-17 22:11:22 +00:00
Mathieu Lonjaret 470e314b1c Merge "make.go: build for ARM in its own versioned gopath dir" 2016-03-16 23:36:56 +00:00
mpl 4e4f045c29 web UI: port Directory view to React
Side-effects:

Fixes issue #694

And we can now remove filetree.* and cache_buster_iframe.js

Change-Id: Id2d72054366be820771e8b342bb84c4da07a0abf
2016-03-17 00:29:26 +01:00
Ricardo Kirkner 48695d85a0 ui: renamed "Search roots" to "Favorites"
Mostly a cosmetic change but should make the menu item easier to
understand for users.

Fixes #506

Change-Id: I30b75a659948859988c1fd07780d08175b56cbc6
2016-03-16 20:09:04 -03:00
mpl c4e53b79d3 pkg/serverinit: improve genconfig error message
Change-Id: I42f30b8abce95c575c0620f4ef2fdb038a8f05db
2016-03-14 18:05:26 +01:00
mpl 97d9ab6fe4 misc/docker/release: zip-source.go
Program to create the zip file containing the Camlistore source for a
release.

Issues #690 and #688

Change-Id: Ibbd3596a6c76cf70c2c29a415c3098bedf48b17f
2016-03-14 17:45:17 +01:00