summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/comment/comment.module6
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.