[FileBackend] Refactored backend access control functions.
authorAaron <aschulz@wikimedia.org>
Mon, 21 May 2012 22:19:06 +0000 (15:19 -0700)
committerAaron <aschulz@wikimedia.org>
Tue, 10 Jul 2012 23:52:01 +0000 (16:52 -0700)
commit15996c62d646c436df73370b0c4983011092c0fe
tree3ed1552b3d546113db0153e5e5ddf7bd11afa7cd
parentd245bb37a830e36d8c036cddea0bfe285ec96411
[FileBackend] Refactored backend access control functions.

* Made secure() no longer create the container/directories.
* Added a new publish() function, which is the reverse of secure().
  It's seems reasonable to be able to reverse secure() if needed.
* Added the ability to call prepare() with the secure() parameters.
  The "securing" will only be done if the container had to be created.
  This kills a bunch of slow RTTs with setContainerAccess() in Swift.
* Also made the Swift doSecureInternal() function respect the arguments
  and set 'r:*' to properly make containers public.
* Consolidated FileRepo directory creation into an initDirectory() function.
  This uses the new prepare() arguments.

Change-Id: Ie16331ebf26c99295f60b266e07a4727228f53f2
includes/filerepo/FileRepo.php
includes/filerepo/backend/FSFileBackend.php
includes/filerepo/backend/FileBackend.php
includes/filerepo/backend/FileBackendMultiWrite.php
includes/filerepo/backend/FileBackendStore.php
includes/filerepo/backend/SwiftFileBackend.php