summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2016-02-01 00:05:58 -0500
committerDavid Rothstein <drothstein@gmail.com>2016-02-01 00:05:58 -0500
commit7dfe6574133c527e1509622a0316d787b53da953 (patch)
tree852e9682e87478253178ecba2d005048c643728c
parent25512367f8b371c311454707f85e04776a528236 (diff)
downloadbrdo-7dfe6574133c527e1509622a0316d787b53da953.tar.gz
brdo-7dfe6574133c527e1509622a0316d787b53da953.tar.bz2
Issue #2596899 by bburg: Remove unnecessary DISTINCT from node access rebuild query to work around a MySQL bug
-rw-r--r--modules/node/node.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index f892d1c2c..af0e3860d 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -3685,7 +3685,7 @@ function _node_access_rebuild_batch_operation(&$context) {
// Initiate multistep processing.
$context['sandbox']['progress'] = 0;
$context['sandbox']['current_node'] = 0;
- $context['sandbox']['max'] = db_query('SELECT COUNT(DISTINCT nid) FROM {node}')->fetchField();
+ $context['sandbox']['max'] = db_query('SELECT COUNT(nid) FROM {node}')->fetchField();
}
// Process the next 20 nodes.