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

Add codec support to wal mode.

FossilOrigin-Name: 393741eba353d5d242b8e3c96db3ea2b92228036
This commit is contained in:
dan
2010-06-22 15:18:44 +00:00
parent 242c4f7702
commit 47ee386f06
8 changed files with 81 additions and 65 deletions

View File

@@ -6101,6 +6101,22 @@ int sqlite3PagerCloseWal(Pager *pPager){
}
return rc;
}
#ifdef SQLITE_HAS_CODEC
/*
** This function is called by the wal module when writing page content
** into the log file.
**
** This function returns a pointer to a buffer containing the encrypted
** page content. If a malloc fails, this function may return NULL.
*/
void *sqlite3PagerCodec(PgHdr *pPg){
void *aData = 0;
CODEC2(pPg->pPager, pPg->pData, pPg->pgno, 6, return 0, aData);
return aData;
}
#endif
#endif
#endif /* SQLITE_OMIT_DISKIO */