diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-11-12 03:18:13 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-11-12 03:18:13 +0000 |
commit | f2e5ed5ce584e79048fcb98e40a05bfb58c3ebdc (patch) | |
tree | 2f079a920fe9926e4d71f49234e60826ae8491c3 /modules/comment | |
parent | 0e8ab9970e46ad781d06c34fe6345effb5c91985 (diff) | |
download | brdo-f2e5ed5ce584e79048fcb98e40a05bfb58c3ebdc.tar.gz brdo-f2e5ed5ce584e79048fcb98e40a05bfb58c3ebdc.tar.bz2 |
- Patch #965628 by AnalogFile: db_ignore_slave() not called when saving a comment.
Diffstat (limited to 'modules/comment')
-rw-r--r-- | modules/comment/comment.module | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index c0058f40f..622433e24 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1451,6 +1451,10 @@ function comment_save($comment) { ->condition('cid', $comment->cid) ->execute(); + // Ignore slave server temporarily to give time for the + // saved comment to be propagated to the slave. + db_ignore_slave(); + // Update the {node_comment_statistics} table prior to executing hooks. _comment_update_node_statistics($comment->nid); @@ -1536,7 +1540,7 @@ function comment_save($comment) { ->execute(); // Ignore slave server temporarily to give time for the - // saved node to be propagated to the slave. + // created comment to be propagated to the slave. db_ignore_slave(); // Update the {node_comment_statistics} table prior to executing hooks. |