MediaWiki
1.32.5
|
Proxy backend that mirrors writes to several internal backends. More...
Public Member Functions | |
__construct (array $config) | |
Construct a proxy backend that consists of several internal backends. More... | |
accessibilityCheck (array $paths) | |
Check that a set of file paths are usable across all internal backends. More... | |
clearCache (array $paths=null) | |
Invalidate any in-process file stat and property cache. More... | |
concatenate (array $params) | |
Concatenate a list of storage files into a single file system file. More... | |
consistencyCheck (array $paths) | |
Check that a set of files are consistent across all internal backends. More... | |
directoryExists (array $params) | |
Check if a directory exists at a given storage path. More... | |
fileExists (array $params) | |
Check if a file exists at a storage path in the backend. More... | |
getDirectoryList (array $params) | |
Get an iterator to list all directories under a storage directory. More... | |
getFeatures () | |
Get the a bitfield of extra features supported by the backend medium. More... | |
getFileContentsMulti (array $params) | |
Like getFileContents() except it takes an array of storage paths and returns a map of storage paths to strings (or null on failure). More... | |
getFileHttpUrl (array $params) | |
Return an HTTP URL to a given file that requires no authentication to use. More... | |
getFileList (array $params) | |
Get an iterator to list all stored files under a storage directory. More... | |
getFileProps (array $params) | |
Get the properties of the file at a storage path in the backend. More... | |
getFileSha1Base36 (array $params) | |
Get a SHA-1 hash of the file at a storage path in the backend. More... | |
getFileSize (array $params) | |
Get the size (bytes) of a file at a storage path in the backend. More... | |
getFileStat (array $params) | |
Get quick information about a file at a storage path in the backend. More... | |
getFileTimestamp (array $params) | |
Get the last-modified timestamp of the file at a storage path. More... | |
getFileXAttributes (array $params) | |
Get metadata about a file at a storage path in the backend. More... | |
getLocalCopyMulti (array $params) | |
Like getLocalCopy() except it takes an array of storage paths and returns a map of storage paths to TempFSFile objects (or null on failure). More... | |
getLocalReferenceMulti (array $params) | |
Like getLocalReference() except it takes an array of storage paths and returns a map of storage paths to FSFile objects (or null on failure). More... | |
getScopedLocksForOps (array $ops, StatusValue $status) | |
Get an array of scoped locks needed for a batch of file operations. More... | |
preloadCache (array $paths) | |
Preload persistent file stat cache and property cache into in-process cache. More... | |
preloadFileStat (array $params) | |
Preload file stat information (concurrently if possible) into in-process cache. More... | |
resyncFiles (array $paths, $resyncMode=true) | |
Check that a set of files are consistent across all internal backends and re-synchronize those files against the "multi master" if needed. More... | |
streamFile (array $params) | |
Stream the file at a storage path in the backend. More... | |
Public Member Functions inherited from FileBackend | |
clean (array $params) | |
Delete a storage directory if it is empty. More... | |
copy (array $params, array $opts=[]) | |
Performs a single copy operation. More... | |
create (array $params, array $opts=[]) | |
Performs a single create operation. More... | |
delete (array $params, array $opts=[]) | |
Performs a single delete operation. More... | |
describe (array $params, array $opts=[]) | |
Performs a single describe operation. More... | |
doOperation (array $op, array $opts=[]) | |
Same as doOperations() except it takes a single operation. More... | |
doOperations (array $ops, array $opts=[]) | |
This is the main entry point into the backend for write operations. More... | |
doQuickOperation (array $op) | |
Same as doQuickOperations() except it takes a single operation. More... | |
doQuickOperations (array $ops, array $opts=[]) | |
Perform a set of independent file operations on some files. More... | |
getContainerStoragePath ( $container) | |
Get the storage path for the given container for this backend. More... | |
getDomainId () | |
Get the domain identifier used for this backend (possibly empty). More... | |
getFileContents (array $params) | |
Get the contents of a file at a storage path in the backend. More... | |
getJournal () | |
Get the file journal object for this backend. More... | |
getLocalCopy (array $params) | |
Get a local copy on disk of the file at a storage path in the backend. More... | |
getLocalReference (array $params) | |
Returns a file system file, identical to the file at a storage path. More... | |
getName () | |
Get the unique backend name. More... | |
getReadOnlyReason () | |
Get an explanatory message if this backend is read-only. More... | |
getRootStoragePath () | |
Get the root storage path of this backend. More... | |
getScopedFileLocks (array $paths, $type, StatusValue $status, $timeout=0) | |
Lock the files at the given storage paths in the backend. More... | |
getTopDirectoryList (array $params) | |
Same as FileBackend::getDirectoryList() except only lists directories that are immediately under the given directory. More... | |
getTopFileList (array $params) | |
Same as FileBackend::getFileList() except only lists files that are immediately under the given directory. More... | |
getWikiId () | |
Alias to getDomainId() More... | |
hasFeatures ( $bitfield) | |
Check if the backend medium supports a field of extra features. More... | |
isReadOnly () | |
Check if this backend is read-only. More... | |
lockFiles (array $paths, $type, $timeout=0) | |
Lock the files at the given storage paths in the backend. More... | |
move (array $params, array $opts=[]) | |
Performs a single move operation. More... | |
prepare (array $params) | |
Prepare a storage directory for usage. More... | |
publish (array $params) | |
Remove measures to block web access to a storage directory and the container it belongs to. More... | |
quickCopy (array $params) | |
Performs a single quick copy operation. More... | |
quickCreate (array $params) | |
Performs a single quick create operation. More... | |
quickDelete (array $params) | |
Performs a single quick delete operation. More... | |
quickDescribe (array $params) | |
Performs a single quick describe operation. More... | |
quickMove (array $params) | |
Performs a single quick move operation. More... | |
quickStore (array $params) | |
Performs a single quick store operation. More... | |
secure (array $params) | |
Take measures to block web access to a storage directory and the container it belongs to. More... | |
setLogger (LoggerInterface $logger) | |
store (array $params, array $opts=[]) | |
Performs a single store operation. More... | |
unlockFiles (array $paths, $type) | |
Unlock the files at the given storage paths in the backend. More... | |
Public Attributes | |
const | CHECK_SHA1 = 4 |
const | CHECK_SIZE = 1 |
const | CHECK_TIME = 2 |
Public Attributes inherited from FileBackend | |
const | ATTR_HEADERS = 1 |
Bitfield flags for supported features. More... | |
const | ATTR_METADATA = 2 |
const | ATTR_UNICODE_PATHS = 4 |
Protected Member Functions | |
doClean (array $params) | |
doDirectoryOp ( $method, array $params) | |
doOperationsInternal (array $ops, array $opts) | |
doPrepare (array $params) | |
doPublish (array $params) | |
doQuickOperationsInternal (array $ops) | |
doSecure (array $params) | |
fileStoragePathsForOps (array $ops) | |
Get a list of file storage paths to read or write for a list of operations. More... | |
getReadIndexFromParams (array $params) | |
hasVolatileSources (array $ops) | |
substOpBatchPaths (array $ops, FileBackendStore $backend) | |
Substitute the backend name in storage path parameters for a set of operations with that of a given internal backend. More... | |
substOpPaths (array $ops, FileBackendStore $backend) | |
Same as substOpBatchPaths() but for a single operation. More... | |
substPaths ( $paths, FileBackendStore $backend) | |
Substitute the backend of storage paths with an internal backend's name. More... | |
unsubstPaths ( $paths) | |
Substitute the backend of internal storage paths with the proxy backend's name. More... | |
Protected Member Functions inherited from FileBackend | |
getScopedPHPBehaviorForOps () | |
Enter file operation scope. More... | |
newStatus () | |
Yields the result of the status wrapper callback on either: More... | |
resetOutputBuffer () | |
resolveFSFileObjects (array $ops) | |
Convert FSFile 'src' paths to string paths (with an 'srcRef' field set to the FSFile) More... | |
scopedProfileSection ( $section) | |
wrapStatus (StatusValue $sv) | |
Protected Attributes | |
bool | $asyncWrites = false |
string bool | $autoResync = false |
FileBackendStore[] | $backends = [] |
Prioritized list of FileBackendStore objects. More... | |
int | $masterIndex = -1 |
Index of master backend. More... | |
int | $readIndex = -1 |
Index of read affinity backend. More... | |
int | $syncChecks = 0 |
Bitfield. More... | |
Protected Attributes inherited from FileBackend | |
int | $concurrency |
How many operations can be done in parallel. More... | |
string | $domainId |
Unique domain name. More... | |
FileJournal | $fileJournal |
LockManager | $lockManager |
LoggerInterface | $logger |
string | $name |
Unique backend name. More... | |
callable | $obResetFunc |
string | $parallelize |
When to do operations in parallel. More... | |
object string | $profiler |
Class name or object With profileIn/profileOut methods. More... | |
string | $readOnly |
Read-only explanation message. More... | |
callable | $statusWrapper |
callable | $streamMimeFunc |
string | $tmpDirectory |
Temporary file directory. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from FileBackend | |
static | extensionFromPath ( $path, $case='lowercase') |
Get the final extension from a storage or FS path. More... | |
static | isPathTraversalFree ( $path) |
Check if a relative path has no directory traversals. More... | |
static | isStoragePath ( $path) |
Check if a given path is a "mwstore://" path. More... | |
static | makeContentDisposition ( $type, $filename='') |
Build a Content-Disposition header value per RFC 6266. More... | |
static | normalizeStoragePath ( $storagePath) |
Normalize a storage path by cleaning up directory separators. More... | |
static | parentStoragePath ( $storagePath) |
Get the parent storage directory of a storage path. More... | |
static | splitStoragePath ( $storagePath) |
Split a storage path into a backend name, a container name, and a relative file path. More... | |
Static Protected Member Functions inherited from FileBackend | |
static | normalizeContainerPath ( $path) |
Validate and normalize a relative storage path. More... | |
Proxy backend that mirrors writes to several internal backends.
This class defines a multi-write backend. Multiple backends can be registered to this proxy backend and it will act as a single backend. Use this when all access to those backends is through this proxy backend. At least one of the backends must be declared the "master" backend.
Only use this class when transitioning from one storage system to another.
Read operations are only done on the 'master' backend for consistency. Write operations are performed on all backends, starting with the master. This makes a best-effort to have transactional semantics, but since requests may sometimes fail, the use of "autoResync" or background scripts to fix inconsistencies is important.
Definition at line 43 of file FileBackendMultiWrite.php.
FileBackendMultiWrite::__construct | ( | array | $config | ) |
Construct a proxy backend that consists of several internal backends.
Locking, journaling, and read-only checks are handled by the proxy backend.
Additional $config params include:
Bogus warning @suppress PhanAccessMethodProtected
array | $config |
FileBackendError |
Reimplemented from FileBackend.
Definition at line 96 of file FileBackendMultiWrite.php.
References FileBackend\$domainId, FileBackend\$fileJournal, $masterIndex, FileBackend\$name, as, and CHECK_SIZE.
FileBackendMultiWrite::accessibilityCheck | ( | array | $paths | ) |
Check that a set of file paths are usable across all internal backends.
array | $paths | List of storage paths |
Definition at line 300 of file FileBackendMultiWrite.php.
References $path, as, captcha-old\count, FileBackend\newStatus(), and substPaths().
Referenced by doOperationsInternal().
FileBackendMultiWrite::clearCache | ( | array | $paths = null | ) |
Invalidate any in-process file stat and property cache.
If $paths is given, then only the cache for those files will be cleared.
array | null | $paths | Storage paths (optional) |
Reimplemented from FileBackend.
Definition at line 713 of file FileBackendMultiWrite.php.
References as, and substPaths().
Referenced by doOperationsInternal().
FileBackendMultiWrite::concatenate | ( | array | $params | ) |
Concatenate a list of storage files into a single file system file.
The target path should refer to a file that is already locked or otherwise safe from modification from other processes. Normally, the file will be a new temp file, which should be adequate.
array | $params | Operation parameters, include:
|
Reimplemented from FileBackend.
Definition at line 575 of file FileBackendMultiWrite.php.
References getReadIndexFromParams(), FileBackend\newStatus(), and substOpPaths().
FileBackendMultiWrite::consistencyCheck | ( | array | $paths | ) |
Check that a set of files are consistent across all internal backends.
array | $paths | List of storage paths |
Definition at line 228 of file FileBackendMultiWrite.php.
References $masterIndex, $params, $path, as, captcha-old\count, FileBackend\newStatus(), substOpPaths(), substPaths(), true, and wfTimestamp().
Referenced by doOperationsInternal().
FileBackendMultiWrite::directoryExists | ( | array | $params | ) |
Check if a directory exists at a given storage path.
Backends using key/value stores will check if the path is a virtual directory, meaning there are files under the given directory.
Storage backends with eventual consistency might return stale data.
array | $params | Parameters include:
|
Reimplemented from FileBackend.
Definition at line 691 of file FileBackendMultiWrite.php.
References $masterIndex, and substOpPaths().
|
protected |
array | $params |
Reimplemented from FileBackend.
Definition at line 539 of file FileBackendMultiWrite.php.
References doDirectoryOp().
|
protected |
string | $method | One of (doPrepare,doSecure,doPublish,doClean) |
array | $params | Method arguments |
Definition at line 548 of file FileBackendMultiWrite.php.
References $masterIndex, DeferredUpdates\addCallableUpdate(), as, FileBackend\newStatus(), substOpPaths(), and use.
Referenced by doClean(), doPrepare(), doPublish(), and doSecure().
array | $ops | |
array | $opts |
Reimplemented from FileBackend.
Definition at line 140 of file FileBackendMultiWrite.php.
References $masterIndex, accessibilityCheck(), DeferredUpdates\addCallableUpdate(), as, class, clearCache(), consistencyCheck(), FormatJson\encode(), fileStoragePathsForOps(), getScopedLocksForOps(), hasVolatileSources(), FileBackend\newStatus(), resyncFiles(), substOpBatchPaths(), use, and wfDebugLog().
|
protected |
array | $params |
Reimplemented from FileBackend.
Definition at line 527 of file FileBackendMultiWrite.php.
References doDirectoryOp().
|
protected |
array | $params |
Reimplemented from FileBackend.
Definition at line 535 of file FileBackendMultiWrite.php.
References doDirectoryOp().
|
protected |
array | $ops |
Reimplemented from FileBackend.
Definition at line 494 of file FileBackendMultiWrite.php.
References $masterIndex, DeferredUpdates\addCallableUpdate(), as, hasVolatileSources(), FileBackend\newStatus(), substOpBatchPaths(), and use.
|
protected |
array | $params |
Reimplemented from FileBackend.
Definition at line 531 of file FileBackendMultiWrite.php.
References doDirectoryOp().
FileBackendMultiWrite::fileExists | ( | array | $params | ) |
Check if a file exists at a storage path in the backend.
This returns false if only a directory exists at the path.
array | $params | Parameters include:
|
Reimplemented from FileBackend.
Definition at line 586 of file FileBackendMultiWrite.php.
References getReadIndexFromParams(), and substOpPaths().
Referenced by fileStoragePathsForOps().
|
protected |
Get a list of file storage paths to read or write for a list of operations.
array | $ops | Same format as doOperations() |
Definition at line 392 of file FileBackendMultiWrite.php.
References as, and fileExists().
Referenced by doOperationsInternal().
FileBackendMultiWrite::getDirectoryList | ( | array | $params | ) |
Get an iterator to list all directories under a storage directory.
If the directory is of the form "mwstore://backend/container", then all directories in the container will be listed. If the directory is of form "mwstore://backend/container/dir", then all directories directly under that directory will be listed. Results will be storage directories relative to the given directory.
Storage backends with eventual consistency might return stale data.
Failures during iteration can result in FileBackendError exceptions (since 1.22).
array | $params | Parameters include:
|
Reimplemented from FileBackend.
Definition at line 697 of file FileBackendMultiWrite.php.
References $masterIndex, and substOpPaths().
FileBackendMultiWrite::getFeatures | ( | ) |
Get the a bitfield of extra features supported by the backend medium.
Reimplemented from FileBackend.
Definition at line 709 of file FileBackendMultiWrite.php.
References $masterIndex.
FileBackendMultiWrite::getFileContentsMulti | ( | array | $params | ) |
Like getFileContents() except it takes an array of storage paths and returns a map of storage paths to strings (or null on failure).
The map keys (paths) are in the same order as the provided list of paths.
array | $params | Parameters include:
|
Reimplemented from FileBackend.
Definition at line 621 of file FileBackendMultiWrite.php.
References $path, as, getReadIndexFromParams(), substOpPaths(), and unsubstPaths().
FileBackendMultiWrite::getFileHttpUrl | ( | array | $params | ) |
Return an HTTP URL to a given file that requires no authentication to use.
The URL may be pre-authenticated (via some token in the URL) and temporary. This will return null if the backend cannot make an HTTP URL for the file.
This is useful for key/value stores when using scripts that seek around large files and those scripts (and the backend) support HTTP Range headers. Otherwise, one would need to use getLocalReference(), which involves loading the entire file on to local disk.
array | $params | Parameters include:
|
Reimplemented from FileBackend.
Definition at line 684 of file FileBackendMultiWrite.php.
References getReadIndexFromParams(), and substOpPaths().
FileBackendMultiWrite::getFileList | ( | array | $params | ) |
Get an iterator to list all stored files under a storage directory.
If the directory is of the form "mwstore://backend/container", then all files in the container will be listed. If the directory is of form "mwstore://backend/container/dir", then all files under that directory will be listed. Results will be storage paths relative to the given directory.
Storage backends with eventual consistency might return stale data.
Failures during iteration can result in FileBackendError exceptions (since 1.22).
array | $params | Parameters include:
|
Reimplemented from FileBackend.
Definition at line 703 of file FileBackendMultiWrite.php.
References $masterIndex, and substOpPaths().
FileBackendMultiWrite::getFileProps | ( | array | $params | ) |
Get the properties of the file at a storage path in the backend.
This gives the result of FSFile::getProps() on a local copy of the file.
array | $params | Parameters include:
|
Reimplemented from FileBackend.
Definition at line 642 of file FileBackendMultiWrite.php.
References getReadIndexFromParams(), and substOpPaths().
FileBackendMultiWrite::getFileSha1Base36 | ( | array | $params | ) |
Get a SHA-1 hash of the file at a storage path in the backend.
array | $params | Parameters include:
|
Reimplemented from FileBackend.
Definition at line 635 of file FileBackendMultiWrite.php.
References getReadIndexFromParams(), and substOpPaths().
FileBackendMultiWrite::getFileSize | ( | array | $params | ) |
Get the size (bytes) of a file at a storage path in the backend.
array | $params | Parameters include:
|
Reimplemented from FileBackend.
Definition at line 600 of file FileBackendMultiWrite.php.
References getReadIndexFromParams(), and substOpPaths().
FileBackendMultiWrite::getFileStat | ( | array | $params | ) |
Get quick information about a file at a storage path in the backend.
If the file does not exist, then this returns false. Otherwise, the result is an associative array that includes:
array | $params | Parameters include:
|
Reimplemented from FileBackend.
Definition at line 607 of file FileBackendMultiWrite.php.
References getReadIndexFromParams(), and substOpPaths().
FileBackendMultiWrite::getFileTimestamp | ( | array | $params | ) |
Get the last-modified timestamp of the file at a storage path.
array | $params | Parameters include:
|
Reimplemented from FileBackend.
Definition at line 593 of file FileBackendMultiWrite.php.
References getReadIndexFromParams(), and substOpPaths().
FileBackendMultiWrite::getFileXAttributes | ( | array | $params | ) |
Get metadata about a file at a storage path in the backend.
If the file does not exist, then this returns false. Otherwise, the result is an associative array that includes:
Use FileBackend::hasFeatures() to check how well this is supported.
array | $params | $params include:
|
Reimplemented from FileBackend.
Definition at line 614 of file FileBackendMultiWrite.php.
References getReadIndexFromParams(), and substOpPaths().
FileBackendMultiWrite::getLocalCopyMulti | ( | array | $params | ) |
Like getLocalCopy() except it takes an array of storage paths and returns a map of storage paths to TempFSFile objects (or null on failure).
The map keys (paths) are in the same order as the provided list of paths.
array | $params | Parameters include:
|
Reimplemented from FileBackend.
Definition at line 670 of file FileBackendMultiWrite.php.
References $path, as, getReadIndexFromParams(), substOpPaths(), and unsubstPaths().
FileBackendMultiWrite::getLocalReferenceMulti | ( | array | $params | ) |
Like getLocalReference() except it takes an array of storage paths and returns a map of storage paths to FSFile objects (or null on failure).
The map keys (paths) are in the same order as the provided list of paths.
array | $params | Parameters include:
|
Reimplemented from FileBackend.
Definition at line 656 of file FileBackendMultiWrite.php.
References $path, as, getReadIndexFromParams(), substOpPaths(), and unsubstPaths().
|
protected |
array | $params |
Definition at line 751 of file FileBackendMultiWrite.php.
References $params, and $readIndex.
Referenced by concatenate(), fileExists(), getFileContentsMulti(), getFileHttpUrl(), getFileProps(), getFileSha1Base36(), getFileSize(), getFileStat(), getFileTimestamp(), getFileXAttributes(), getLocalCopyMulti(), getLocalReferenceMulti(), preloadFileStat(), and streamFile().
FileBackendMultiWrite::getScopedLocksForOps | ( | array | $ops, |
StatusValue | $status | ||
) |
Get an array of scoped locks needed for a batch of file operations.
Normally, FileBackend::doOperations() handles locking, unless the 'nonLocking' param is passed in. This function is useful if you want the files to be locked for a broader scope than just when the files are changing. For example, if you need to update DB metadata, you may want to keep the files locked until finished.
array | $ops | List of file operations to FileBackend::doOperations() |
StatusValue | $status | StatusValue to update on lock/unlock |
Reimplemented from FileBackend.
Definition at line 732 of file FileBackendMultiWrite.php.
References $masterIndex, FileBackend\getScopedFileLocks(), LockManager\LOCK_EX, LockManager\LOCK_UW, substOpBatchPaths(), and unsubstPaths().
Referenced by doOperationsInternal().
|
protected |
array | $ops | File operations for FileBackend::doOperations() |
Definition at line 484 of file FileBackendMultiWrite.php.
References as.
Referenced by doOperationsInternal(), and doQuickOperationsInternal().
FileBackendMultiWrite::preloadCache | ( | array | $paths | ) |
Preload persistent file stat cache and property cache into in-process cache.
This should be used when stat calls will be made on a known list of a many files.
array | $paths | Storage paths |
Reimplemented from FileBackend.
Definition at line 720 of file FileBackendMultiWrite.php.
References $readIndex, and substPaths().
FileBackendMultiWrite::preloadFileStat | ( | array | $params | ) |
Preload file stat information (concurrently if possible) into in-process cache.
This should be used when stat calls will be made on a known list of a many files. This does not make use of the persistent file stat cache.
array | $params | Parameters include:
|
Reimplemented from FileBackend.
Definition at line 725 of file FileBackendMultiWrite.php.
References getReadIndexFromParams(), and substOpPaths().
Check that a set of files are consistent across all internal backends and re-synchronize those files against the "multi master" if needed.
array | $paths | List of storage paths |
string | bool | $resyncMode | False, True, or "conservative"; see __construct() |
Definition at line 326 of file FileBackendMultiWrite.php.
References $masterIndex, $path, as, class, FormatJson\encode(), name, FileBackend\newStatus(), substPaths(), and wfDebugLog().
Referenced by doOperationsInternal().
FileBackendMultiWrite::streamFile | ( | array | $params | ) |
Stream the file at a storage path in the backend.
If the file does not exists, an HTTP 404 error will be given. Appropriate HTTP headers (Status, Content-Type, Content-Length) will be sent if streaming began, while none will be sent otherwise. Implementations should flush the output buffer before sending data.
array | $params | Parameters include:
|
Reimplemented from FileBackend.
Definition at line 649 of file FileBackendMultiWrite.php.
References getReadIndexFromParams(), and substOpPaths().
|
protected |
Substitute the backend name in storage path parameters for a set of operations with that of a given internal backend.
array | $ops | List of file operation arrays |
FileBackendStore | $backend |
Definition at line 423 of file FileBackendMultiWrite.php.
References as, and substPaths().
Referenced by doOperationsInternal(), doQuickOperationsInternal(), getScopedLocksForOps(), and substOpPaths().
|
protected |
Same as substOpBatchPaths() but for a single operation.
array | $ops | File operation array |
FileBackendStore | $backend |
Definition at line 445 of file FileBackendMultiWrite.php.
References substOpBatchPaths().
Referenced by concatenate(), consistencyCheck(), directoryExists(), doDirectoryOp(), fileExists(), getDirectoryList(), getFileContentsMulti(), getFileHttpUrl(), getFileList(), getFileProps(), getFileSha1Base36(), getFileSize(), getFileStat(), getFileTimestamp(), getFileXAttributes(), getLocalCopyMulti(), getLocalReferenceMulti(), preloadFileStat(), and streamFile().
|
protected |
Substitute the backend of storage paths with an internal backend's name.
array | string | $paths | List of paths or single string path |
FileBackendStore | $backend |
Definition at line 458 of file FileBackendMultiWrite.php.
References StringUtils\escapeRegexReplacement(), and name.
Referenced by accessibilityCheck(), clearCache(), consistencyCheck(), preloadCache(), resyncFiles(), and substOpBatchPaths().
|
protected |
Substitute the backend of internal storage paths with the proxy backend's name.
array | string | $paths | List of paths or single string path |
Definition at line 472 of file FileBackendMultiWrite.php.
References StringUtils\escapeRegexReplacement().
Referenced by getFileContentsMulti(), getLocalCopyMulti(), getLocalReferenceMulti(), and getScopedLocksForOps().
|
protected |
Definition at line 58 of file FileBackendMultiWrite.php.
Definition at line 55 of file FileBackendMultiWrite.php.
|
protected |
Prioritized list of FileBackendStore objects.
Definition at line 45 of file FileBackendMultiWrite.php.
|
protected |
Index of master backend.
Definition at line 48 of file FileBackendMultiWrite.php.
Referenced by __construct(), consistencyCheck(), directoryExists(), doDirectoryOp(), doOperationsInternal(), doQuickOperationsInternal(), getDirectoryList(), getFeatures(), getFileList(), getScopedLocksForOps(), and resyncFiles().
|
protected |
Index of read affinity backend.
Definition at line 50 of file FileBackendMultiWrite.php.
Referenced by getReadIndexFromParams(), and preloadCache().
|
protected |
Bitfield.
Definition at line 53 of file FileBackendMultiWrite.php.
const FileBackendMultiWrite::CHECK_SHA1 = 4 |
Definition at line 63 of file FileBackendMultiWrite.php.
const FileBackendMultiWrite::CHECK_SIZE = 1 |
Definition at line 61 of file FileBackendMultiWrite.php.
Referenced by __construct().
const FileBackendMultiWrite::CHECK_TIME = 2 |
Definition at line 62 of file FileBackendMultiWrite.php.