W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2010

Re: [IndexedDB] Simultaneous setVersion from multiple pages

From: Jeremy Orlow <jorlow@chromium.org>
Date: Thu, 23 Sep 2010 10:47:58 +0100
Message-ID: <AANLkTin=g_VkiubqPM6dNYv7Vq6-eLyaFMFiOYvjzLm6@mail.gmail.com>
To: ben turner <bent.mozilla@gmail.com>
Cc: public-webapps WG <public-webapps@w3.org>
It's not a deadlock though.  Error codes are cheap.  Why not just create
another?

Also, for the record, I'm strongly against us allowing it to be possible for
IndexedDB to result in a deadlock.

J

On Wed, Sep 22, 2010 at 8:57 PM, ben turner <bent.mozilla@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
> 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 the setVersion transaction will never run (and all database
> activity will basically hang at that point).
>
> Jonas and I decided that this situation should result in the losing
> database's request having its error handler called with DEADLOCK_ERR.
> Does that sound reasonable to everyone?
>
> -Ben
>
>
Received on Thursday, 23 September 2010 09:48:51 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:40 GMT