From 9566caaff0ef52ddf2e4e245e5c6e403bf77d19e Mon Sep 17 00:00:00 2001 From: webchick <webchick@24967.no-reply.drupal.org> Date: Wed, 29 Feb 2012 12:25:43 -0800 Subject: [PATCH] Issue #1369332 by Damien Tournoud, basic, sun, no_commit_credit: Fixed Avoid deadlock issues on the {node} table. --- core/modules/node/node.install | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/modules/node/node.install b/core/modules/node/node.install index efcce1ab36c3..b2616ab6b87b 100644 --- a/core/modules/node/node.install +++ b/core/modules/node/node.install @@ -18,12 +18,14 @@ function node_schema() { 'unsigned' => TRUE, 'not null' => TRUE, ), + // Defaults to NULL in order to avoid a brief period of potential + // deadlocks on the index. 'vid' => array( 'description' => 'The current {node_revision}.vid version identifier.', 'type' => 'int', 'unsigned' => TRUE, - 'not null' => TRUE, - 'default' => 0, + 'not null' => FALSE, + 'default' => NULL, ), 'type' => array( 'description' => 'The {node_type}.type of this node.', -- GitLab