Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix a problem preventing shared-memory space from being reused. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
6f9c692a0e42a2f0ec993d3fbf56980a |
User & Date: | dan 2012-09-11 18:57:46.274 |
Context
2012-09-12
| ||
14:19 | Add code for emergency rollback of the shared-memory tree. check-in: d52cc59da3 user: dan tags: trunk | |
2012-09-11
| ||
18:57 | Fix a problem preventing shared-memory space from being reused. check-in: 6f9c692a0e user: dan tags: trunk | |
18:48 | Fix log file wrapping so that it works as described in lsm.wiki. This eliminates some BUSY errors that were coming up in multi-thread tests. check-in: f8ce14403f user: dan tags: trunk | |
Changes
Changes to src/lsm_tree.c.
︙ | ︙ | |||
963 964 965 966 967 968 969 970 971 972 973 974 975 976 | ** Empty the contents of the in-memory tree. */ void lsmTreeClear(lsm_db *pDb){ pDb->treehdr.iTransId = 1; pDb->treehdr.iRoot = 0; pDb->treehdr.nHeight = 0; pDb->treehdr.nByte = 0; } /* ** This function is called during recovery to initialize the ** tree header. Only the database connections private copy of the tree-header ** is initialized here - it will be copied into shared memory if log file ** recovery is successful. | > | 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 | ** Empty the contents of the in-memory tree. */ void lsmTreeClear(lsm_db *pDb){ pDb->treehdr.iTransId = 1; pDb->treehdr.iRoot = 0; pDb->treehdr.nHeight = 0; pDb->treehdr.nByte = 0; pDb->treehdr.iUsedShmid = pDb->treehdr.iNextShmid-1; } /* ** This function is called during recovery to initialize the ** tree header. Only the database connections private copy of the tree-header ** is initialized here - it will be copied into shared memory if log file ** recovery is successful. |
︙ | ︙ |