1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Ensure the master journal directory is synced. Also, change the master journal

format to store journal file names. (CVS 1583)

FossilOrigin-Name: 73cd0aabb24f7b663c8b55cf5e8fcb34fd48c032
This commit is contained in:
danielk1977
2004-06-14 06:03:57 +00:00
parent aa5ccdf5b8
commit 5865e3d54f
7 changed files with 89 additions and 47 deletions

View File

@@ -9,7 +9,7 @@
** May you share freely, never taking more than you give.
**
*************************************************************************
** $Id: btree.c,v 1.165 2004/06/13 23:07:04 drh Exp $
** $Id: btree.c,v 1.166 2004/06/14 06:03:57 danielk1977 Exp $
**
** This file implements a external (disk-based) database using BTrees.
** For a detailed discussion of BTrees, refer to
@@ -4196,6 +4196,24 @@ const char *sqlite3BtreeGetFilename(Btree *pBt){
return sqlite3pager_filename(pBt->pPager);
}
/*
** Return the pathname of the directory that contains the database file.
*/
const char *sqlite3BtreeGetDirname(Btree *pBt){
assert( pBt->pPager!=0 );
return sqlite3pager_dirname(pBt->pPager);
}
/*
** Return the pathname of the journal file for this database. The return
** value of this routine is the same regardless of whether the journal file
** has been created or not.
*/
const char *sqlite3BtreeGetJournalname(Btree *pBt){
assert( pBt->pPager!=0 );
return sqlite3pager_journalname(pBt->pPager);
}
/*
** Copy the complete content of pBtFrom into pBtTo. A transaction
** must be active for both files.