Thiemo Kreuz
645d96b0e1
Fix and improve PHPDoc type hints in FileBackend and FileRepo
...
Change-Id: I311b4a6777946b451d70c6fdb2133dbbd73f159f
2018-04-19 10:32:09 +02:00
WMDE-Fisch
6df9ed1ad6
update mediawiki-codesniffer to 0.11.0 and fix issues
...
- mostly auto fixes
- some too long lines fixed
- ignore amp space in one case passing by reference
Change-Id: I6472f83bc3cbf4bd629d83050cc3319b19ec465c
2017-08-11 22:27:51 +02:00
Aaron Schulz
82e2c924e4
Remove "@author Aaron Schulz" annotations
...
Bug: T139301
Change-Id: Ib5248e8e27d60611c7373bce4b29dd5e85aa3489
2017-06-27 15:24:14 -07:00
Aaron Schulz
dd359741cc
Move DB errors to Rdbms namespace
...
Change-Id: I463bd86123501abc68fdb78b4cda6110f7af2549
2017-04-15 10:47:41 -07:00
Aaron Schulz
488a647831
Move IDatabase/IMaintainableDatabase to Rdbms namespace
...
Change-Id: If7e8a8ff574661fd827de8bcec11d2c39a687300
2017-03-28 15:32:38 -07:00
WMDE-Fisch
ae3419f532
Replace some of the deprecated wfGetLBFactory() calls
...
Change-Id: I87aa0ebe273706438f1634167de8c60f51432878
2017-02-07 14:41:09 +01:00
Aaron Schulz
c64c3ef9a8
Make Status extend StatusValue and start FileBackend update
...
* 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
2016-09-17 15:45:40 -07:00
Kunal Mehta
6e9b4f0e9c
Convert all array() syntax to []
...
Per wikitech-l consensus:
https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html
Notes:
* Disabled CallTimePassByReference due to false positives (T127163)
Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
2016-02-17 01:33:00 -08:00
Aaron Schulz
7c07943eab
Update more docs and type hints to use IDatabase
...
Change-Id: I8c8d85b32a8aba21e14d2a2dde4c25eb509186c1
2015-10-06 18:49:52 -07:00
Siebrand Mazeland
34a4bcbd48
Update documentation of file backend classes
...
Change-Id: I2113aecc53f1b361d9c276113bc0a9f7076cd21c
2013-11-23 19:24:43 +01:00
Siebrand Mazeland
a5c35215e2
Update formatting of file backend classes
...
Change-Id: Ie69c324e2f1ea0b8a654adee06ebda494cebd10c
2013-11-22 22:17:15 +01:00
umherirrender
1bfc8feb25
Fixed spacing in actions/cache/filebackend/filerepo/job folder
...
Added spaces before if, foreach
Added some braces for one line statements
Change-Id: Idb93d34e314e5f314223b79208968d6bcd30c40e
2013-04-20 19:18:13 +02:00
Aaron Schulz
d4e9dd90f4
Added --postime option syncFileBackend.
...
* Useful when starting positions are made after copying started.
Change-Id: I34d996594753f7bc4449dac96a4822242c1897ee
2013-03-03 04:45:15 -08:00
Aaron Schulz
9dc6ffe9f9
[FileJournal] Randomly prune old log entries.
...
Change-Id: I667bfdaf167f2154d833b06de7115b4b292a0d2b
2012-11-09 00:28:30 +00:00
Aaron Schulz
22ac627fd3
Added "posdump" option to syncFileBackend to dump the current position.
...
Change-Id: Iabb027788796e98e06e3c6e97d14f74819cc6c95
2012-10-04 11:43:59 -07:00
Aaron
65f34c3a25
[FileJournal] Made getMasterDB() reuse the DB handle.
...
* Also made use of autocommit mode while at it.
Change-Id: I460e483d0103de70d505fe00dc9c67e33effde0c
2012-08-27 13:42:31 -07:00
Aaron Schulz
4bdad0e395
Removed useless fj_path_sha1 field to save space.
...
* Searches by path are not used by any code, and small blobs
are stored with the rest of the row in innoDB, so there is
no gain there. The field is mostly a hangover from a use case
that never materialized (where it would be indexed).
Change-Id: I5515f15bd35823736138a79a4942c7207e519e5c
2012-08-10 23:03:38 -07:00
Aaron Schulz
a47892abef
[FileBackend] Moved filerepo/backend/ up to filebackend
...
Change-Id: I62ba23bd22e0f177fb48acaf6bcc38cbffacd3e7
2012-08-08 18:20:57 -07:00