The API for node_access_rebuild() has a note that modules should not call this in hook_enable() anymore, and should instead call node_access_needs_rebuild() so that the user can rebuild it themselves.
http://api.drupal.org/api/function/node_access_rebuild/6
I think this is also true for a case where it takes a really long time to rebuild node access. In my case, I need to enable the module, not rebuild node access, perform some operations in my hook_update() and only after those custom operations are done, rebuild node access. Rebuilding twice would not be a very viable option.
Comments
Comment #1
sirkitree commentedComment #2
simon georges commentedSounds good !
Comment #3
adamps commentedLooks like this has been done now in D7