<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Deadlock!</title>
	<atom:link href="http://mk.netgenes.org/archives/823/feed/" rel="self" type="application/rss+xml" />
	<link>http://mk.netgenes.org/archives/823/</link>
	<description>The blog is a lie</description>
	<lastBuildDate>Fri, 30 Jul 2010 06:56:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: mk</title>
		<link>http://mk.netgenes.org/archives/823/comment-page-1/#comment-17095</link>
		<dc:creator>mk</dc:creator>
		<pubDate>Tue, 29 Jul 2008 02:00:56 +0000</pubDate>
		<guid isPermaLink="false">http://mk.netgenes.org/?p=823#comment-17095</guid>
		<description>&lt;a href=&quot;#comment-17094&quot; rel=&quot;nofollow&quot;&gt;@kingslee :&lt;/a&gt; That&#039;s correct, that&#039;s Database deadlock.</description>
		<content:encoded><![CDATA[<p><a href="#comment-17094" rel="nofollow">@kingslee :</a> That&#8217;s correct, that&#8217;s Database deadlock.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kingslee</title>
		<link>http://mk.netgenes.org/archives/823/comment-page-1/#comment-17094</link>
		<dc:creator>kingslee</dc:creator>
		<pubDate>Tue, 29 Jul 2008 01:42:47 +0000</pubDate>
		<guid isPermaLink="false">http://mk.netgenes.org/?p=823#comment-17094</guid>
		<description>database dead lock.


int totalRecords = selectRecord();
conn.commit();

==&gt;

conn.commit();
int totalRecords = selectRecord();

should ok.

&quot;insert&quot; lock down all the table until &quot;commit&quot;, and &quot;select&quot; can not perform while table is locked.
</description>
		<content:encoded><![CDATA[<p>database dead lock.</p>
<p>int totalRecords = selectRecord();<br />
conn.commit();</p>
<p>==&gt;</p>
<p>conn.commit();<br />
int totalRecords = selectRecord();</p>
<p>should ok.</p>
<p>&#8220;insert&#8221; lock down all the table until &#8220;commit&#8221;, and &#8220;select&#8221; can not perform while table is locked.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
