Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.
|Comment:||Boundary value fix to the descriptive comment at the top of test_quota.c.|
|Downloads:||Tarball | ZIP archive | SQL archive|
|Timelines:||family | ancestors | descendants | both | trunk|
|Files:||files | file ages | folders|
|User & Date:||drh 2010-09-01 15:26:18|
|16:19||Call quota callback destructors from within sqlite3_quota_shutdown(). (check-in: fb80c6f3 user: dan tags: trunk)|
|15:26||Boundary value fix to the descriptive comment at the top of test_quota.c. (check-in: 7f6072f0 user: drh tags: trunk)|
|15:22||Merge the test_quota.c module into the trunk. (check-in: 2e1a0202 user: drh tags: trunk)|
Changes to src/test_quota.c.
13 13 ** This file contains a VFS "shim" - a layer that sits in between the 14 14 ** pager and the real VFS. 15 15 ** 16 16 ** This particular shim enforces a quota system on files. One or more 17 17 ** database files are in a "quota group" that is defined by a GLOB 18 18 ** pattern. A quota is set for the combined size of all files in the 19 19 ** the group. A quota of zero means "no limit". If the total size 20 -** of all files in the quota group is greater than or equal to the limit, 21 -** then write requests that attempt to enlarge a file fail with SQLITE_FULL. 20 +** of all files in the quota group is greater than the limit, then 21 +** write requests that attempt to enlarge a file fail with SQLITE_FULL. 22 22 ** 23 23 ** However, before returning SQLITE_FULL, the write requests invoke 24 24 ** a callback function that is configurable for each quota group. 25 25 ** This callback has the opportunity to enlarge the quota. If the 26 26 ** callback does enlarge the quota such that the total size of all 27 27 ** files within the group is less than the new quota, then the write 28 28 ** continues as if nothing had happened.