4 Commits
Author SHA1 Message Date
Jonathan Boulle 9685f37575 *: adjust copyright header
Inspired by a similar change in the Kubernetes project [1], this changes
the copyright header to the more generic "The rkt Authors" rather than
"CoreOS, Inc.", which is only sometimes correct.

https://github.com/GoogleCloudPlatform/kubernetes/commit/6b3a6e6b983f967c88d14d26542ec6e30c49ebd3
2015-05-03 14:29:15 -07:00
Iago López Galeiras dea7868cef install: fix rkt install again
Create all cas directories explicitly and create qldb files with the
right permissions.

If we don't create them and the first fetch is made by root, the
files/directories will be created with root permissions and following
fetches as a user belonging to the rkt group will fail.
2015-04-17 16:31:54 +02:00
Simone Gotti 140fcb3858 store: do not commit/rollback inside deferred function.
Actually if a panic in a called function happens, the deferred function will
call tx.Commit (as on panic err is nil), with the possibility to commit an
incomplete transaction, instead of rollbacking or returning an error (that will
rolback on the next db.Close).

One solution will be to recover the panic to avoid calling tx.Commit.

As the error path is only one, just call tx.Rollback/tx.Commit in the proper
places without using a deferred function.
2015-04-09 10:52:49 +02:00
Jesse Dubay 99218f8676 cas: rename to store
The cas package implements more than just a CAS, so this patch gives it
a suitably generic name.

Fixes #707
2015-04-07 18:05:03 -07:00