Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add a checksum to the database header. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
cba26fd7ccc5d66908713926f8eae03e |
User & Date: | dan 2013-11-15 09:44:58.991 |
Context
2013-11-15
| ||
18:47 | Various fixes so that the "bt" permutation test passes. check-in: 0866df185c user: dan tags: trunk | |
09:44 | Add a checksum to the database header. check-in: cba26fd7cc user: dan tags: trunk | |
2013-11-14
| ||
19:29 | Fix various savepoint-related problems in bt. check-in: c633d85c33 user: dan tags: trunk | |
Changes
Changes to src/btInt.h.
︙ | |||
43 44 45 46 47 48 49 50 51 52 53 54 55 56 | 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | + + | ** Database header fields. */ typedef struct BtDbhdr BtDbhdr; struct BtDbhdr { u32 pgsz; /* Page size in bytes */ u32 nPg; /* Number of pages in database */ u32 cookie; /* User cookie value (SQL schema cookie) */ u32 padding; /* Unused */ u32 aCksum[2]; /* Checksum over other fields */ }; /************************************************************************* ** Interface to bt_pager.c functionality. */ typedef struct BtPage BtPage; typedef struct BtPager BtPager; |
︙ |
Changes to src/bt_log.c.
︙ | |||
802 803 804 805 806 807 808 | 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 | - - + + - - - - - - + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + - + + | aLog[5] = iLast; return btLogHashRollback(pLog, btLogFrameHash(pLog, iLast), iLast); } static int btLogReadDbhdr(BtLog *pLog, BtDbhdr *pHdr){ BtLock *p = pLog->pLock; |
︙ | |||
1696 1697 1698 1699 1700 1701 1702 | 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 | - - - - - - - - - - - - - - - - - - | + (int)pLog->snapshot.aLog[3] - (int)pLog->snapshot.aLog[2] + (pLog->snapshot.aLog[3]!=0) + (int)pLog->snapshot.aLog[5] - (int)pLog->snapshot.aLog[4] + (pLog->snapshot.aLog[5]!=0) ; } |
︙ |
Changes to test/permutations.test.
︙ | |||
128 129 130 131 132 133 134 | 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | - - + | # bt # veryquick # quick # full # lappend ::testsuitelist xxx |
︙ |