| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
| |
* Remove wf* function and ObjectCache dependencies.
* Use the base class session field.
* Lower physical lock structure TTL and move it to the base
class as a constant.
* Resolve TODO about acquiring mixed lock types in one pass.
* Only mark servers down for 30 seconds in case of long-running
scripts.
Change-Id: Icd4be407e599524cc620975d27e85666d2532b95
|
|
|
|
|
|
|
|
|
| |
* FileBackendGroup now applies the usual config for these sub-backends,
the same config get() applies.
* Also make sure FileBackendMultiWrite::concatenate() uses the status wrapper.
Bug: T146904
Change-Id: I1e9b5027dbac11ea9484cd16851e5db998574429
|
|
|
|
| |
Change-Id: Ied0be9891d70930caf415d75cb3b89043347f47e
|
|
|
|
|
|
|
|
| |
* Avoid wf* function MediaWiki dependencies.
* Don't bother with getLocalClusterInstance() caching for the CLI case.
* Give FileBackend a default 'resetOutputBuffer' callback.
Change-Id: I359da1ad77c62880ea799b65cd3a16ad673a64eb
|
|
|
|
| |
Change-Id: Id38a2ef9e0e22537d0267b536f8a4dfd60c5b41d
|
|
|
|
| |
Change-Id: Iad6471724f8cdc596c755e6194da7556158e9203
|
|\ |
|
| |
| |
| |
| | |
Change-Id: If490f64bec282e5dfcdaf7feb1cbf46d3dce1064
|
|\ \ |
|
| | |
| | |
| | |
| | | |
Change-Id: Ia476f117243cf0f6984e373d460b24db18584704
|
|\| |
| |/
|/| |
|
| |
| |
| |
| | |
Change-Id: Ied4a85d7172ab76b90f6d9ce4d47a83c3fd7d111
|
| |
| |
| |
| | |
Change-Id: Ib8ab9edd1afdb28f7444f5e13cf34a696a066234
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Move most StreamFile code to this new class
* Remove StreamFile depedency from FileBackendStore
Change-Id: I4a272ef49497b589114fc2b37ba800bc26d9161f
|
|/ /
| |
| |
| | |
Change-Id: I8079693a62db390028cd9f72b2bd7a81ae1164c3
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Inject a PSR logger in place of wf* logging methods.
* Replace wfTimestamp() call with ConvertableTimestamp.
* Inject the Profiler object.
* Rename $wiki => $domain to avoid "wiki" mentions.
* Remove stray FSFile::extractImageSizeInfo() method.
Change-Id: I3e3a43d36506bec341dc5727b52f5f5a5d32bff5
|
|/
|
|
| |
Change-Id: Idf05c0c44f5f6fbb373625c0aebe015e385700ce
|
|
|
|
| |
Change-Id: I4bfa79f430827b8717a57bb61cb7c36bc7fcb489
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
* Also simplified the srvCache variable usage to be unconditional.
* The wfRandomString() call has also been replaced.
Change-Id: I17e83b17ec549906ee200bbe9eb2f0b151423e26
|
| |
| |
| |
| |
| |
| |
| |
| | |
Use standard exceptions for unexpected errors and remove
FileBackendException class, leaving FileBackendError. The
later is actually intended to be caught in some cases.
Change-Id: I735a525e0b14e518b2da5f18762e0f293064dfc2
|
| |
| |
| |
| | |
Change-Id: Ieaae909b49c798b6e9bed65d15961cefbdaec49b
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* FSFile should not be responsible for handling this much logic.
* Make more MediaHandler classes aware of the fact that an object
other than File might be passed in. Use the FSFile instead of a
useless empty stdClass object.
* Also added more fields to FSFile::placeholderProps to make it
more complete.
Change-Id: I9fe764b2a7261af507c6555e6a57273cf7d00d36
|
|/ /
| |
| |
| | |
Change-Id: I219daffa67ff672bf5bd38921f4b1ca058d96b0f
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Remove wf* function dependencies. This includes wfTempDir().
Callers now should specify the directory, though it will try to do
most of the wfTempDir() logic anyway if they do not.
* Update callers to inject wfTempDir() so $wgTmpDirectory is used by
TempFSFile instead of it probing to find a valid directory itself.
* Move most of the wfTempDir() logic to TempFSFile::getUsableTempDirectory().
* Remove unused getMimeType() method.
Change-Id: Idd55936b07f9448a6c90577708722b7b52b8fe66
|
| |/
|/|
| |
| | |
Change-Id: I0c3a84c2ed8b869519f4d38475a77539c24a88a8
|
| |
| |
| |
| | |
Change-Id: Ifa41fc2939f3515d4a056746b0fcbff79786d25b
|
|/
|
|
| |
Change-Id: I52f08c6e7372ddbbcc1b5f82d505e435b01ff138
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* This avoids code duplication.
* Callers can safely start type-hinting StatusValue as well.
* Also moved the wrap() logic out of Status::__construct(), which
only wrap() was (and should have been) using. Use "static" as
well, so subclass behave properly.
* The docs and type-hints in /filebackend are updated as an example.
* A migration pattern is to inject a StatusValue wrapper
into the backend and use it on all returned statuses, so MediaWiki
will still get Status for message methods.
Change-Id: Iff9255f34870ea6b0c4b91f6ddc69eea95186aba
|
|
|
|
|
|
| |
Also fixed up backwards documentation
Change-Id: I00c36aa751a79ca86a754e049a6da78cbb417b81
|
|
|
|
| |
Change-Id: I01bfdb8e0bfaa132533732873f7c840cea7935eb
|
|
|
|
| |
Change-Id: Ic65b7b2f1c2396246a3825c8d06d42bd6d06c37e
|
|
|
|
| |
Change-Id: I2e8b4e85b12c8892e8640abc63ee13b4b170645d
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Do not do the connection init step if the same DB handle as
wfGetDB( DB_MASTER ) is being used to avoid clobbering it.
* Remove begin(), since only one of the subclasses wants
transactions. That one now uses startAtomic() now.
* Make getConnection() throw an error for bad config instead
of return null, which was not documented or expected.
Change-Id: Ib09a7972d6569c29e83e329a8f7f9f47a393b896
|
|/
|
|
| |
Change-Id: Icb0cfa6e38bc81c35430023afe50dd94ef3b2013
|
|
|
|
| |
Change-Id: If903a90a5be2d6ff11504d34eb125e86c1ab1191
|
|
|
|
| |
Change-Id: I5431caf4b80995c71d4bc5ab739954d70081111a
|
|
|
|
| |
Change-Id: I4f9328e1555d814e0849cea86aca20896c6dfacf
|
|
|
|
| |
Change-Id: I5e671bcee0915f65082c139be8f42aafad6413f1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Added HTTP options headers parameter to streamFile().
* Refactored doStreamFile() to either call StreamFile::stream()
or delagate that to the subclass. SwiftFileBackend now relays
the full Swift response rather than manually making the headers.
This also makes Range headers easy to support.
* Made use of this in img_auth.php for performance on private wikis.
* Elimate stat call in streamFile() for Swift if "headers" is empty.
* Refactored StreamFile a bit to inject request headers instead
of using the $_SERVER global. A header options parameter is used
instead, which also supports Range.
* Removed now unused prepareForStream().
* Cleaned up streamFile() unit tests.
Change-Id: I2ccbcbca6caabb8cf65bd6b3084cede2e6ea628a
|
|
|
|
|
|
|
| |
This distinguishes cases that recover from sync errors
from those that do not.
Change-Id: Ibcdea18041e7344077c8308359a1a6087139f2e0
|
|
|
|
|
|
|
|
| |
doOperationsInternal() already set "preserveCache" but never actually
filled it in to begin with. This should lower round trips if sync checks
are enabled.
Change-Id: Ica67b8d66e7602faed842408365edbd466688f61
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I1ca3e0bc9d5db4ca043f313fb15a780ae102c50a
|
|/
|
|
|
|
|
| |
Pass in the resync mode as a flag instead of using
the object instance.
Change-Id: I2da661a65afd712403db936b6e31fba8e8069096
|
|
|
|
|
|
|
|
| |
In the age when we require PHP 5.5, pretending that mbstring emulation
is not slow and silly is silly.
Bug: T129435
Change-Id: Ic8235c9da9a926df63ec7388900c44eab454eebe
|