wiki.techinc.nl/includes
Aaron Schulz cc3ac23c4f [JobQueue] Optimized redis queue to use Lua scripts.
* Cleaned up some data structures into hashes, which get better
  compression and play well with the KEYS parameter in Lua scripts.
  The claim list is now a sorted set with O(logN) removal in ack()
  and O(log(N)+M) searching in recycleAndDeleteStaleJobs().
* Made the class itself control object serialization, so that lua
  scripts have an easy time. Only the job data itself needs to be
  serialized, where as other things just get bloated.
* Used Lua scripts to get push(), pop() and ack() down to 1 RTT.
* Likewise rewrote recycleAndDeleteStaleJobs() to use a script.
* Fixed bug where claimed duplicate jobs removed the data on ack(),
  which meant that claimed duplicated jobs could no-op newer ones.
  De-duplication should only apply to unclaimed jobs like for the
  JobQueueDB class, so that unfinished jobs don't no-op new ones.
* Removed locking in recycleAndDeleteStaleJobs(), which would not do
  much since the exclusive set request would serialize on the lua
  script anyway. The lua script will finish quickly the next times
  if done more than once in a row due to sorted set usage.
  Also made recycleAndDeleteStaleJobs() run randomly to reduce the
  chance of a single calling tying up the server.
* Removed useless hDel() call in getJobFromUidInternal().
* Changed unit tests to handle the different supported orders better.
  Added tests for the 'timestamp' ordering.

Change-Id: Ib2d7aff18753195248ab856afd4a46e18b301db9
2013-03-20 01:04:53 +00:00
..
actions Changing OutputPage param to a Context param in PageHistoryBeforeList 2013-03-13 21:06:39 +00:00
api Remove spaces in function signature 2013-03-18 20:44:43 +01:00
cache Tweaked MessageCache locks to handle exceptions better. 2013-03-15 05:47:44 +00:00
clientpool Moved some RedisConnectionPool docs to the factory function. 2013-03-19 11:15:57 +00:00
content Remove spaces between parentheses in function calls 2013-03-17 16:13:22 +01:00
context Fixed importScopedSession() and moved exportUserSession() to RequestContext. 2013-03-15 12:49:54 -07:00
dao Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
db Remove spaces in function signature 2013-03-18 20:44:43 +01:00
debug Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
diff Remove spaces in function signature 2013-03-18 20:44:43 +01:00
extauth
externalstore Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
filebackend Merge "[FileBackend] Replaced redundant "disposition" param with "headers"." 2013-03-18 17:16:53 +00:00
filerepo Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
installer Localisation updates from http://translatewiki.net. 2013-03-19 21:18:38 +00:00
interwiki
job [JobQueue] Optimized redis queue to use Lua scripts. 2013-03-20 01:04:53 +00:00
json Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
libs Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
logging Merge "Correct case of Title::getPrefixedDBkey() calls" 2013-03-12 15:13:21 +00:00
media Remove spaces in function signature 2013-03-18 20:44:43 +01:00
normal Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
objectcache Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
parser Remove spaces in function signature 2013-03-18 20:44:43 +01:00
profiler Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
resourceloader Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
revisiondelete Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
search Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
site Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
specials Revert "Change login/createaccount forms to new appearance" 2013-03-19 20:10:19 +00:00
templates Revert "Change login/createaccount forms to new appearance" 2013-03-19 20:10:19 +00:00
upload Remove spaces in function signature 2013-03-18 20:44:43 +01:00
.htaccess
Action.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
AjaxDispatcher.php
AjaxResponse.php Remove spaces in function signature 2013-03-18 20:44:43 +01:00
ArrayUtils.php Fixed ArrayUtils::pickRandom() when $rand=0. 2013-03-05 15:18:47 -08:00
Article.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
AuthPlugin.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
AutoLoader.php Revert "Change login/createaccount forms to new appearance" 2013-03-19 20:10:19 +00:00
Autopromote.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
Block.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
CacheHelper.php
Category.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
Categoryfinder.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
CategoryPage.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
CategoryViewer.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
Cdb.php fix some spacing 2013-03-07 17:53:21 +01:00
Cdb_PHP.php
ChangesFeed.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
ChangesList.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
ChangeTags.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
Collation.php Allow first letter data to be invalidated 2013-03-13 14:53:20 +11:00
ConfEditor.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
Cookie.php Remove spaces in function signature 2013-03-18 20:44:43 +01:00
CryptRand.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
DataUpdate.php Remove spaces between parentheses in function calls 2013-03-17 16:13:22 +01:00
DefaultSettings.php Revert "Change login/createaccount forms to new appearance" 2013-03-19 20:10:19 +00:00
DeferredUpdates.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
Defines.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
DeprecatedGlobal.php
EditPage.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
Exception.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
Export.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
ExternalEdit.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
ExternalUser.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
FakeTitle.php
Fallback.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
Feed.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
FeedUtils.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
FileDeleteForm.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
ForkController.php
FormOptions.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
GitInfo.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
GlobalFunctions.php Remove spaces between parentheses in function calls 2013-03-17 16:13:22 +01:00
HistoryBlob.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
Hooks.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
Html.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
HTMLForm.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
HttpFunctions.php wfProfile fixes: 2013-03-19 16:17:19 +01:00
ImageGallery.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
ImagePage.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
ImageQueryPage.php
Import.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
Init.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
IP.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
Licenses.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
limit.sh (Bug 45854) Unset the cgroup if we don't have a memory limit 2013-03-08 10:51:55 +01:00
Linker.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
LinkFilter.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
LinksUpdate.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
MagicWord.php fix some spacing 2013-03-07 17:53:21 +01:00
MappedIterator.php Fixed $vCallback comment and removed unused return value. 2013-03-08 09:49:13 -08:00
Message.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
MessageBlobStore.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
Metadata.php
mime.info
mime.types
MimeMagic.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
MWFunction.php
Namespace.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
OutputHandler.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
OutputPage.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
PageQueryPage.php
Pager.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
PathRouter.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
PHPVersionError.php Merge "Make update.php and install.php use wfPHPVersionError() and reorganise it" 2013-03-15 20:55:49 +00:00
PoolCounter.php Cleaned up PoolCounter docs, moved up some functions, and declared public functions. 2013-03-18 15:41:25 -07:00
Preferences.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
PrefixSearch.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
ProtectionForm.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
ProxyTools.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
QueryPage.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
RecentChange.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
Revision.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
RevisionList.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
Sanitizer.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
ScopedCallback.php Added ScopedCallback functions for early execution or cancellation. 2013-03-14 13:23:32 -07:00
ScopedPHPTimeout.php
SeleniumWebSettings.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
Setup.php fix some spacing 2013-03-07 17:53:21 +01:00
SiteConfiguration.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
SiteStats.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
Skin.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
SkinLegacy.php Use American English spelling for behavior 2013-03-04 10:24:57 +01:00
SkinTemplate.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
SpecialPage.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
SpecialPageFactory.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
SqlDataUpdate.php Remove spaces between parentheses in function calls 2013-03-17 16:13:22 +01:00
SquidPurgeClient.php
Status.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
StreamFile.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
StringUtils.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
StubObject.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
tidy.conf
Timestamp.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
Title.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
TitleArray.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
UIDGenerator.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
User.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
UserArray.php
UserMailer.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
UserRightsProxy.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
ViewCountUpdate.php
WatchedItem.php Use American English spelling for behavior 2013-03-04 10:24:57 +01:00
WebRequest.php Fixed importScopedSession() and moved exportUserSession() to RequestContext. 2013-03-15 12:49:54 -07:00
WebResponse.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
WebStart.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
Wiki.php Correct case of Title::getPrefixedDBkey() calls 2013-03-09 21:14:22 +01:00
WikiCategoryPage.php
WikiError.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
WikiFilePage.php Remove spaces between parentheses in function calls 2013-03-17 16:13:22 +01:00
WikiMap.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
WikiPage.php Remove spaces between parentheses in function calls 2013-03-17 16:13:22 +01:00
Xml.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
XmlTypeCheck.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
ZhClient.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00
ZhConversion.php
ZipDirectoryReader.php Spellchecked /includes directory 2013-03-13 03:42:41 -04:00