Infinite Loop

32 views
Skip to first unread message

Moksh Khurana

unread,
Apr 19, 2013, 4:05:32 PM4/19/13
to fm...@googlegroups.com
I have a Transaction running using queue and within that transaction I am calling another method which does [queue inDatabase] call to find out if the table exists or not. During the execution of second call to figure out if the databases exists or not, it runs into an infinite loop, possibly trying to get a lock on the DB. What can I do to resolve this?

Gus Mueller

unread,
Apr 23, 2013, 1:05:55 PM4/23/13
to fm...@googlegroups.com
Don't call start two transactions at the same time. You'll have to refactor your code, or pass along the database handle to the methods that need it.

-gus
Reply all
Reply to author
Forward
0 new messages