diff options
author | David Rothstein <drothstein@gmail.com> | 2016-02-01 00:05:58 -0500 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2016-02-01 00:05:58 -0500 |
commit | 7dfe6574133c527e1509622a0316d787b53da953 (patch) | |
tree | 852e9682e87478253178ecba2d005048c643728c /modules | |
parent | 25512367f8b371c311454707f85e04776a528236 (diff) | |
download | brdo-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
Diffstat (limited to 'modules')
-rw-r--r-- | modules/node/node.module | 2 |
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. |