From f2e5ed5ce584e79048fcb98e40a05bfb58c3ebdc Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 12 Nov 2010 03:18:13 +0000 Subject: - Patch #965628 by AnalogFile: db_ignore_slave() not called when saving a comment. --- modules/comment/comment.module | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/comment') 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. -- cgit v1.2.3