Commit graph

25 commits

Author SHA1 Message Date
Aaron Schulz
ef2f2610ab filebackend: try to combine SH and EX lock acquisition
* getPathsToLockForOpsInternal() now returns an array in the format LockManager can use
* Also fixed getScopedLocksForOps() for multiwrite backend (it should accept proxy backend paths)
* Updated getScopedFileLocks() docs

Change-Id: Id0dc50c159c5fbc8fca10a9e46c5be23afcb3e9a
2013-10-18 22:57:38 +00:00
Aaron Schulz
7a5902e613 Removed redundant doc comments.
Change-Id: Iced16c6d32ef0e4d58376ed3c092a500ec917446
2013-06-15 22:36:23 -07:00
Aaron Schulz
7242d938f3 Cleaned up variable/type order in docs.
* A few other minor doc cleanups and obvious type hints.

Change-Id: I454fad0c1942068b4f3632ebd1b605bfbb9dfe7c
2013-06-13 11:18:52 -07:00
Aaron Schulz
3bc080c946 [FileBackend] Cleaned up resyncFiles() and added conservative resync option to FileBackendMultiWrite.
Change-Id: I4fd96fda71fc1aba44104241a8329e95ba5cdda7
2013-05-09 12:46:38 -07:00
umherirrender
6c278b6d7e fix some spacing
* Removed spaces around array index
* Removed double spaces or added spaces to begin or end of function
  calls, method signature, conditions or foreachs
* Added braces to one-line ifs
* Changed multi line conditions to one line conditions
* Realigned some arrays

Change-Id: Ia04d2a99d663b07101013c2d53b3b2e872fd9cc3
2013-03-25 22:22:46 +00:00
Aaron Schulz
1045622590 [FileBackend] Fixed "ignoreMissingSource" bug in multiwrite backend.
* Beefed up unit tests for this case and other "ignoreMissingSource" cases
  such as when the source container or parent directory do not exist.

Change-Id: Iea6dae2424edfd0c4367e5cff606c09a4e8a865b
2013-03-12 13:39:40 -07:00
Tyler Anthony Romeo
4dcc7961df Fixed @param tags to conform with Doxygen format.
Doxygen expects parameter types to come before the
parameter name in @param tags. Used a quick regex
to switch everything around where possible. This
only fixes cases where a primitve variable (or a
primitive followed by other types) is the variable
type. Other cases will need to be fixed manually.

Change-Id: Ic59fd20856eb0489d70f3469a56ebce0efb3db13
2013-03-11 13:15:01 -04:00
Reedy
c3e4057e06 Kill off numerous unused variables
Change-Id: I7039f1328f37ee669b694f73ee282602186bffd1
2013-03-08 02:36:24 +00:00
umherirrender
d63121016d fix some spacing
Added/removed spaces around logical/arithmetic operator
Reduced multiple empty lines to one empty line
Removed wrong tabs before comments at end of line
Removed too many spaces in assigments

Change-Id: I2bba4e72f9b5f88c53324d7b70e6042f1aad8f6b
2013-03-07 17:53:21 +01:00
Aaron Schulz
aa7fbbb0cd [FileBackend] Documentation tweaks.
Change-Id: I63b03207a18c7523675a4929031dc560a2d8b5f8
2013-02-04 23:20:18 -08:00
Aaron Schulz
9f95bddda7 [FileBackend] Added getFileHttpUrl() function.
* This can speed up certain video file operations for scripts that support
  specifying source files via URLs and support HTTP Range headers.
* Updated unit tests.

Change-Id: I60cb95c2e3dd9f7df1f740e9182be7c79af69d6e
2012-11-08 23:01:19 +00:00
Siebrand Mazeland
d4b046a893 Update docs for return and exception info
* Removed some inline tabs in the process.
* IDE fixed some incorrect leading spaces, too.

Change-Id: Ic9303eff6db4424ac3f1fa2816839692b43e6190
2012-10-09 09:41:58 +00:00
Aaron Schulz
812487e902 [FileBackend] Tweaked FileBackendMultiWrite behavior to fix test leakage.
Change-Id: I0a967780b64d1883cfeb1a7a183bbb82dc1ae432
2012-10-05 15:07:30 -07:00
Brion VIBBER
a570a73510 Merge "[FileBackend] Added getFileContentsMulti() and improved it for Swift." 2012-10-03 20:01:46 +00:00
Brion VIBBER
ba652c59fa Merge "[FileBackend] Added getLocalCopyMulti() and getLocalReferenceMulti()." 2012-10-03 19:54:34 +00:00
Aaron Schulz
613c5949a6 Reorder keys for fileStoragePathsForOps() function since its a list.
Change-Id: I83cf6f6db92c9a0b39c3229d688463c5cda61d69
2012-10-02 10:40:35 -07:00
Aaron Schulz
8641c9af9d [FileBackend] Added getFileContentsMulti() and improved it for Swift.
Change-Id: I6a2173eccda8fe7d4e2e779421e6edf05c8201b4
2012-09-22 11:01:58 -07:00
Aaron
ae65453e84 [FileBackend] Added getLocalCopyMulti() and getLocalReferenceMulti().
* Optimized these in Swift to use pipelined GETs.
* This can also be used to improve concatenate().

Change-Id: Ibeb5df7532f9f5c16736b20c28b7c0d9ddfb412f
2012-09-21 21:10:54 -07:00
Aaron Schulz
5a4046e80c [FileBackend] Added automatic recovery option for backend sync errors.
* Separated consistency checks from permission checks.
* Made fileStoragePathsForOps() exclude non-storage paths.

Change-Id: If15c5fb890f7506ac9c9bfb78c46ab9228a55a8f
2012-09-12 21:33:16 +00:00
Aaron
0da6eaea05 [FileBackend] Reduce backend sync errors a bit by aborting operations more.
Change-Id: Iedb8d7e1f95c971dbb9f9baed67de047753ab40d
2012-08-30 10:10:50 -07:00
Aaron Schulz
feb7a3e10e [FileBackend] Reduced stat calls when using the multiwrite backend.
Change-Id: I46805637a9dcaaea597bf6eeba204a6889a36a51
2012-08-26 02:11:31 -07:00
Aaron
36c0c1edb6 [FileBackend] MultiWrite options to avoid pushing certain changes to all backends.
* This can be used to no-op dir and file operations on the clone backends
  for the 'thumb' and 'temp' zones to reduce load or avoid hitting certain mounts.

Change-Id: I2c57904b8264b7479b17736333b0b9228b469bbc
2012-08-22 16:02:12 -07:00
Aaron
e6a1ba3fd7 [FileBackend] Actually respend the "syncChecks" config option
Change-Id: Ibb6a243b49970da7c22ff14231b04cb0ac5c64e7
2012-08-15 17:43:36 -07:00
Aaron
c51a9a288b [FileBackend] Added resyncFiles() function to multiwrite backend.
* Also fixed the the SHA1 function calls in consistencyCheck().

Change-Id: I29758ff79102929aa0ffb756526d7918bf74ca39
2012-08-15 17:24:20 -07:00
Aaron Schulz
a47892abef [FileBackend] Moved filerepo/backend/ up to filebackend
Change-Id: I62ba23bd22e0f177fb48acaf6bcc38cbffacd3e7
2012-08-08 18:20:57 -07:00
Renamed from includes/filerepo/backend/FileBackendMultiWrite.php (Browse further)