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

RE: [indexeddb] Using IDBDatabaseSync.close or IDBFactorySync.deleteDatabase inside transaction's callback method

From: Israel Hilerio <israelh@microsoft.com>
Date: Wed, 6 Jul 2011 01:07:38 +0000
To: Jonas Sicking <jonas@sicking.cc>
CC: "public-webapps@w3.org" <public-webapps@w3.org>
Message-ID: <F695AF7AA77CC745A271AD0F61BBC61E3D188A1D@TK5EX14MBXC119.redmond.corp.microsoft.com>
On Tuesday, July 05, 2011 5:46 PM, Jonas Sicking wrote:
> On Tue, Jul 5, 2011 at 4:41 PM, Israel Hilerio <israelh@microsoft.com> wrote:
> > What do you think about NOT allowing IDBFactorySync.deleteDatabase and
> IDBDatabaseSync.close to be called from within the transaction callback
> method of IDBDatabaseSync.transaction or IDBDatabaseSync.setVersion?  This
> will reduce the number of possible deadlocks inside the transaction callback.
> >
> > We can throw an IDBDatabaseException with NOT_ALLOWED_ERR if a
> developer tries to do this.
> 
> Yes, this sounds like a good idea. Obviously this doesn't affect the async API,
> right?
> 
> / Jonas

Correct! This will only impact the sync APIs, not the async APIs.

Israel
Received on Wednesday, 6 July 2011 01:08:13 GMT

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