[whatwg] [IndexedDB] Simultaneous setVersion from multiple pages

2010-09-22 Thread ben turner
Hi folks, While implementing the latest setVersion changes I came across this problem: Let's say that a site is open in two different windows and each decides to do a setVersion request at the same time. Only one of them can win, obviously, and the other must end up calling close() on itself or

Re: [whatwg] [IndexedDB] Simultaneous setVersion from multiple pages

2010-09-22 Thread ben turner
Sorry folks, this went to the wrong list! Please ignore. -Ben On Wed, Sep 22, 2010 at 12:55 PM, ben turner bent.mozi...@gmail.com wrote: Hi folks, While implementing the latest setVersion changes I came across this problem: Let's say that a site is open in two different windows and each

Re: [whatwg] [IndexedDB] Simultaneous setVersion from multiple pages

2010-09-22 Thread Roger Hågensen
On 2010-09-22 21:56, ben turner wrote: Sorry folks, this went to the wrong list! Please ignore. -Ben On Wed, Sep 22, 2010 at 12:55 PM, ben turnerbent.mozi...@gmail.com wrote: Hi folks, While implementing the latest setVersion changes I came across this problem: Let's say that a site is

Re: [whatwg] [IndexedDB] Simultaneous setVersion from multiple pages

2010-09-22 Thread Shiv Kumar
What does other DB's like MySQL do? My guess is a busy/try again error right? They'll continue and finish the transaction if the locks are removed before the timeout. If the timeout expires they'll throw a deadlock exception and the transaction will be rolled back. Shiv http://exposureroom.com