Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add comments related to database locking to sqlite3ota.h. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | ota-update |
Files: | files | file ages | folders |
SHA1: |
77242965e77446313a8f0a65a39fccb6 |
User & Date: | dan 2015-04-22 11:34:38.145 |
Context
2015-04-23
| ||
18:14 | Have OTA maintain a small LRU cache of UPDATE statements. This reduces the amount of time it spends compiling UPDATE if a single data_xxx table contains many different ota_control strings. (check-in: baee3556ea user: dan tags: ota-update) | |
2015-04-22
| ||
11:34 | Add comments related to database locking to sqlite3ota.h. (check-in: 77242965e7 user: dan tags: ota-update) | |
2015-04-21
| ||
15:35 | Add a comment to sqlite3ota.h. No code changes. (check-in: 352fa09efd user: dan tags: ota-update) | |
Changes
Changes to ext/ota/sqlite3ota.h.
︙ | ︙ | |||
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | ** time sqlite3ota_close() is called, various state information is saved ** within the OTA database. This allows subsequent processes to automatically ** resume the OTA update from where it left off. ** ** To remove all OTA extension state information, returning an OTA database ** to its original contents, it is sufficient to drop all tables that begin ** with the prefix "ota_" */ #ifndef _SQLITE3OTA_H #define _SQLITE3OTA_H #include "sqlite3.h" /* Required for error code definitions */ | > > > > > > > > > > > > > | 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 | ** time sqlite3ota_close() is called, various state information is saved ** within the OTA database. This allows subsequent processes to automatically ** resume the OTA update from where it left off. ** ** To remove all OTA extension state information, returning an OTA database ** to its original contents, it is sufficient to drop all tables that begin ** with the prefix "ota_" ** ** DATABASE LOCKING ** ** An OTA update may not be applied to a database in WAL mode. Attempting ** to do so is an error (SQLITE_ERROR). ** ** While an OTA handle is open, a SHARED lock may be held on the target ** database file. This means it is possible for other clients to read the ** database, but not to write it. ** ** If an OTA update is started and then suspended before it is completed, ** then an external client writes to the database, then attempting to resume ** the suspended OTA update is also an error (SQLITE_BUSY). */ #ifndef _SQLITE3OTA_H #define _SQLITE3OTA_H #include "sqlite3.h" /* Required for error code definitions */ |
︙ | ︙ |