From d9cc13e9f0c1e64342d8e6c91396ce70ffbb30c6 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Wed, 20 Oct 2010 00:27:51 +0000
Subject: [PATCH] - Patch #118108 by bleen18: node delete does not clean up
 node_access() table.

---
 modules/node/node.module | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/node/node.module b/modules/node/node.module
index 6f634fe5c65c..80d30b62e9c2 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1193,6 +1193,9 @@ function node_delete_multiple($nids) {
     db_delete('history')
       ->condition('nid', $nids, 'IN')
       ->execute();
+    db_delete('node_access')
+      ->condition('nid', $nids, 'IN')
+      ->execute();
 
     // Clear the page and block and node_load_multiple caches.
     cache_clear_all();
-- 
GitLab