Manual:$wgDBtransactions

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Manual:$wgDBtransactions and the translation is 38% complete.

Other languages:
Deutsch • ‎English • ‎español • ‎فارسی • ‎français • ‎日本語 • ‎Nederlands • ‎polski • ‎português do Brasil • ‎русский
MySQL specific: $wgDBtransactions
InnoDB テーブルを使用する場合は true を設定する。
導入されたバージョン: pre 1.1.0
除去されたバージョン: 1.20.0 (r12113)
可能な値: (真偽値)
既定値: false
他の設定: アルファベット順 | 機能順

If you are using InnoDB tables, set this to true to disable MediaWiki's query rollback mechanism.

詳細[edit]

この変数は、ページの作成や編集の際に使用されます。

Some table engines (like MyISAM) do not support transactions. Transaction support means that when a change to the database (possibly built up of multiple queries) should be made, the table engine makes sure that it is either done completely or not at all, but not partly. MyISAM does not support this feature, so that the situation can occur where a set of queries has been partly executed leaving the data in the DB in inconsistent state. In this case, if $wgDBtransactions is set to false, MediaWiki rolls back an incomplete transaction to fix this problem.

Other table engines (like InnoDB) support transactions; that means that the table engine itself checks if a transaction finished correctly. If it did not, the engine does a rollback automatically, so that the data in the DB is kept consistent (without MediaWiki having to take additional steps).

For details see includes/WikiPage.php, function doEdit.