dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eabdda4
)
Remove TODO for use of TRUNCATE and replace with comment
author
umherirrender
<umherirrender_de.wp@web.de>
Wed, 22 Jan 2014 20:17:05 +0000
(21:17 +0100)
committer
umherirrender
<umherirrender_de.wp@web.de>
Wed, 22 Jan 2014 20:17:05 +0000
(21:17 +0100)
The new comment explain why truncate is not possible
Change-Id: I8dacff0784a07a0e20a4da0cc71043379ded6eb0
includes/MessageBlobStore.php
patch
|
blob
|
history
diff --git
a/includes/MessageBlobStore.php
b/includes/MessageBlobStore.php
index
8a8142b
..
7e1c745
100644
(file)
--- a/
includes/MessageBlobStore.php
+++ b/
includes/MessageBlobStore.php
@@
-242,8
+242,9
@@
class MessageBlobStore {
public static function clear() {
// TODO: Give this some more thought
- // TODO: Is TRUNCATE better?
try {
+ // Not using TRUNCATE, because that needs extra permissions,
+ // which maybe not granted to the database user.
$dbw = wfGetDB( DB_MASTER );
$dbw->delete( 'msg_resource', '*', __METHOD__ );
$dbw->delete( 'msg_resource_links', '*', __METHOD__ );