原文地址:http://blog.sina.com.cn/s/blog_6b60ad7d0100y9a0.html
drupal Rebuilding content access permissions 重建网站内容访问权限
Another possible hack
Not sure why this is happening to me, but I've found that I can just force node_access_rebuild() to not use batch mode by changing line 2314 of node.module from:
<?php
if ($batch_mode) {
?>
to:
<?php
if (FALSE) {
?>
It solved my problem. I was hitting rebuild for whole day finally I set $batch_mode to FALSE. after that my content permission rebuild was successful
Thanks monotaga