Lines Matching refs:zMaster

7703 SQLITE_PRIVATE int sqlite3BtreeCommitPhaseOne(Btree*, const char *zMaster);
8423 SQLITE_PRIVATE int sqlite3PagerCommitPhaseOne(Pager*,const char *zMaster, int);
37615 ** zMaster must point to a buffer of at least nMaster bytes allocated by
37623 ** file, then it is copied into the buffer pointed to by zMaster. A
37628 ** zMaster[0] is set to 0 and SQLITE_OK returned.
37633 static int readMasterJournal(sqlite3_file *pJrnl, char *zMaster, u32 nMaster){
37640 zMaster[0] = '\0';
37649 || SQLITE_OK!=(rc = sqlite3OsRead(pJrnl, zMaster, len, szJ-16-len))
37656 cksum -= zMaster[u];
37666 zMaster[len] = '\0';
38008 ** If zMaster is a NULL pointer (occurs for a single database transaction),
38011 static int writeMasterJournal(Pager *pPager, const char *zMaster){
38013 int nMaster; /* Length of string zMaster */
38016 u32 cksum = 0; /* Checksum of string zMaster */
38021 if( !zMaster
38031 /* Calculate the length in bytes and the checksum of zMaster */
38032 for(nMaster=0; zMaster[nMaster]; nMaster++){
38033 cksum += zMaster[nMaster];
38049 || (0 != (rc = sqlite3OsWrite(pPager->jfd, zMaster, nMaster, iHdrOff+4)))
38749 ** Parameter zMaster is the name of a master journal file. A single journal
38754 ** Argument zMaster may point to Pager.pTmpSpace. So that buffer is not
38774 ** file zMaster
38778 ** no such child journal can be found, file zMaster is deleted from
38791 static int pager_delmaster(Pager *pPager, const char *zMaster){
38811 rc = sqlite3OsOpen(pVfs, zMaster, pMaster, flags, 0);
38858 c = zMasterPtr[0]!=0 && strcmp(zMasterPtr, zMaster)==0;
38868 rc = sqlite3OsDelete(pVfs, zMaster, 0);
39032 char *zMaster = 0; /* Name of master journal file if any */
39055 zMaster = pPager->pTmpSpace;
39056 rc = readMasterJournal(pPager->jfd, zMaster, pPager->pVfs->mxPathname+1);
39057 if( rc==SQLITE_OK && zMaster[0] ){
39058 rc = sqlite3OsAccess(pVfs, zMaster, SQLITE_ACCESS_EXISTS, &res);
39060 zMaster = 0;
39184 zMaster = pPager->pTmpSpace;
39185 rc = readMasterJournal(pPager->jfd, zMaster, pPager->pVfs->mxPathname+1);
39194 rc = pager_end_transaction(pPager, zMaster[0]!='\0');
39197 if( rc==SQLITE_OK && zMaster[0] && res ){
39201 rc = pager_delmaster(pPager, zMaster);
42143 ** Sync the database file for the pager pPager. zMaster points to the name
42145 ** journal file. zMaster may be NULL, which is interpreted as no master
42160 ** Note that if zMaster==NULL, this does not overwrite a previous value
42170 const char *zMaster, /* If not NULL, the master journal name */
42185 PAGERTRACE(("DATABASE SYNC: File=%s zMaster=%s nSize=%d\n",
42186 pPager->zFilename, zMaster, pPager->dbSize));
42248 if( !zMaster && isOpen(pPager->jfd)
42305 ** or if zMaster is NULL (no master journal), then this call is a no-op.
42307 rc = writeMasterJournal(pPager, zMaster);
50202 ** Otherwise, sync the database file for the btree pBt. zMaster points to
50213 SQLITE_PRIVATE int sqlite3BtreeCommitPhaseOne(Btree *p, const char *zMaster){
50227 rc = sqlite3PagerCommitPhaseOne(pBt->pPager, zMaster, 0);
58912 char *zMaster = 0; /* File-name for the master journal */
58921 sqlite3DbFree(db, zMaster);
58923 zMaster = sqlite3MPrintf(db, "%s-mj%08X", zMainFile, iRandom&0x7fffffff);
58924 if( !zMaster ){
58927 rc = sqlite3OsAccess(pVfs, zMaster, SQLITE_ACCESS_EXISTS, &res);
58931 rc = sqlite3OsOpenMalloc(pVfs, zMaster, &pMaster,
58937 sqlite3DbFree(db, zMaster);
58962 sqlite3OsDelete(pVfs, zMaster, 0);
58963 sqlite3DbFree(db, zMaster);
58977 sqlite3OsDelete(pVfs, zMaster, 0);
58978 sqlite3DbFree(db, zMaster);
58995 rc = sqlite3BtreeCommitPhaseOne(pBt, zMaster);
59001 sqlite3DbFree(db, zMaster);
59009 rc = sqlite3OsDelete(pVfs, zMaster, 1);
59010 sqlite3DbFree(db, zMaster);
59011 zMaster = 0;
62768 const char *zMaster;
67040 const char *zMaster;
67059 u.bu.zMaster = SCHEMA_TABLE(u.bu.iDb);
67065 db->aDb[u.bu.iDb].zName, u.bu.zMaster, pOp->p4.z);