r41272 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r41271
|
r41272
|
r41273
>
Date:
22:47, 25 September 2008
Author:
brion
Status:
old
Tags:
Comment:
Just for good measure, wrap code_rev and code_path inserts in a transaction. Otherwise it might be possible for an interrupted svnImport.php process to save a revision record but not its affected paths.
Modified paths:
/trunk/extensions/CodeReview/CodeRevision.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/extensions/CodeReview/CodeRevision.php
—
—
@@ -71,6 +71,8 @@
72
72
73
73
function save() {
74
74
$dbw = wfGetDB( DB_MASTER );
75
+ $dbw->begin();
76
+
75
77
$dbw->insert( 'code_rev',
76
78
array(
77
79
'cr_repo_id' => $this->mRepo,
—
—
@@ -96,6 +98,8 @@
97
99
__METHOD__,
98
100
array( 'IGNORE' ) );
99
101
}
102
+
103
+ $dbw->commit();
100
104
}
101
105
102
106
function getModifiedPaths(){
Status & tagging log
15:32, 12 September 2011
Meno25
(
talk
|
contribs
)
changed the
status
of r41272
[
removed:
deferred
added:
old]
00:24, 7 March 2010
😂
(
talk
|
contribs
)
changed the
status
of r41272
[
removed:
new
added:
deferred]