aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2007-05-02 17:54:55 +0000
committerdrh <drh@noemail.net>2007-05-02 17:54:55 +0000
commitb7af4452d90be40cec561da111589c73d1d98c67 (patch)
tree46534f1158c6ed75d830cbbb368d2446a8d7555f /src
parent9f8d64009ef1980ec2abc02f5e2b375e5a1aec73 (diff)
downloadsqlite-b7af4452d90be40cec561da111589c73d1d98c67.tar.gz
sqlite-b7af4452d90be40cec561da111589c73d1d98c67.zip
Allow CREATE TABLE to occur while other queries are running. DROP TABLE is
still prohibited, however, since we do not want to delete a table out from under an running query. (CVS 3902) FossilOrigin-Name: 5b4bf1fce4d589337cfb1b46d75c751bbdc607d5
Diffstat (limited to 'src')
-rw-r--r--src/btree.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/btree.c b/src/btree.c
index b34aec967..6e5974778 100644
--- a/src/btree.c
+++ b/src/btree.c
@@ -9,7 +9,7 @@
** May you share freely, never taking more than you give.
**
*************************************************************************
-** $Id: btree.c,v 1.367 2007/05/02 17:48:46 danielk1977 Exp $
+** $Id: btree.c,v 1.368 2007/05/02 17:54:56 drh Exp $
**
** This file implements a external (disk-based) database using BTrees.
** For a detailed discussion of BTrees, refer to
@@ -5755,15 +5755,6 @@ int sqlite3BtreeCreateTable(Btree *p, int *piTable, int flags){
}
assert( !pBt->readOnly );
- /* It is illegal to create a table if any cursors are open on the
- ** database. This is because in auto-vacuum mode the backend may
- ** need to move a database page to make room for the new root-page.
- ** If an open cursor was using the page a problem would occur.
- */
- if( pBt->pCursor ){
- return SQLITE_LOCKED;
- }
-
#ifdef SQLITE_OMIT_AUTOVACUUM
rc = allocateBtreePage(pBt, &pRoot, &pgnoRoot, 1, 0);
if( rc ) return rc;