diff options
author | danielk1977 <danielk1977@noemail.net> | 2009-07-02 07:47:33 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2009-07-02 07:47:33 +0000 |
commit | 602b466e99d3b18eeffff19ee13eca2ef41f3131 (patch) | |
tree | e8b91c331aaf7ae70c3ea8a0e8af720b83ac9021 /src/backup.c | |
parent | 325ccfa90e36c8607a5acddaffb25e408013fe05 (diff) | |
download | sqlite-602b466e99d3b18eeffff19ee13eca2ef41f3131.tar.gz sqlite-602b466e99d3b18eeffff19ee13eca2ef41f3131.zip |
Cause opening a transaction on a sharable b-tree module automatically obtain a read-lock on page 1. This means there is no way for sqlite3BtreeGetMeta() to fail. (CVS 6836)
FossilOrigin-Name: e3c055f167f895ae45858de9d9d8a264df2f36b6
Diffstat (limited to 'src/backup.c')
-rw-r--r-- | src/backup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backup.c b/src/backup.c index 5eb9b8bf9..a0daa6321 100644 --- a/src/backup.c +++ b/src/backup.c @@ -12,7 +12,7 @@ ** This file contains the implementation of the sqlite3_backup_XXX() ** API functions and the related features. ** -** $Id: backup.c,v 1.17 2009/06/03 11:25:07 danielk1977 Exp $ +** $Id: backup.c,v 1.18 2009/07/02 07:47:33 danielk1977 Exp $ */ #include "sqliteInt.h" #include "btreeInt.h" @@ -318,7 +318,7 @@ int sqlite3_backup_step(sqlite3_backup *p, int nPage){ && SQLITE_OK==(rc = sqlite3BtreeBeginTrans(p->pDest, 2)) ){ p->bDestLocked = 1; - rc = sqlite3BtreeGetMeta(p->pDest, BTREE_SCHEMA_VERSION, &p->iDestSchema); + sqlite3BtreeGetMeta(p->pDest, BTREE_SCHEMA_VERSION, &p->iDestSchema); } /* If there is no open read-transaction on the source database, open |