summaryrefslogtreecommitdiff
path: root/modules/statistics/statistics.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-29 07:17:22 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-29 07:17:22 +0000
commit46f988bcc5eca0542f4f6ccb8d900ae94f385da8 (patch)
tree0eb4cfbaa511c0665ed7f83e5f33c840e835b60f /modules/statistics/statistics.module
parentf05e3c2fcfd14d94b41ba7a49c858b694845cd8f (diff)
downloadbrdo-46f988bcc5eca0542f4f6ccb8d900ae94f385da8.tar.gz
brdo-46f988bcc5eca0542f4f6ccb8d900ae94f385da8.tar.bz2
#615516 by Crell: Use slave servers for statistics module.
Diffstat (limited to 'modules/statistics/statistics.module')
-rw-r--r--modules/statistics/statistics.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module
index a8dd9ef38..611c650b7 100644
--- a/modules/statistics/statistics.module
+++ b/modules/statistics/statistics.module
@@ -289,7 +289,7 @@ function statistics_get($nid) {
if ($nid > 0) {
// Retrieve an array with both totalcount and daycount.
- return db_query('SELECT totalcount, daycount, timestamp FROM {node_counter} WHERE nid = :nid', array(':nid' => $nid))->fetchAssoc();
+ return db_query('SELECT totalcount, daycount, timestamp FROM {node_counter} WHERE nid = :nid', array(':nid' => $nid), array('target' => 'slave'))->fetchAssoc();
}
}