Check-in [dd0cc55f82]
Overview
Comment:Added timeout (30s) for DB operations to avoid locking failures being immediately returned
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:dd0cc55f82824c0536200c4607e0e1549c5e2674
User & Date: rkeene on 2014-11-17 16:51:21
Other Links: manifest | tags
Context
2014-11-17
16:51
Added start of signature verification check-in: 6f88d82476 user: rkeene tags: trunk
16:51
Added timeout (30s) for DB operations to avoid locking failures being immediately returned check-in: dd0cc55f82 user: rkeene tags: trunk
2014-11-15
19:34
Updated inode generation to be FNV-1a check-in: fac74d236f user: rkeene tags: trunk
Changes

Modified appfsd.tcl from [8fdf97f435] to [171439581e].

   161    161   			source $config_file
   162    162   		}
   163    163   
   164    164   		if {![info exists ::appfs::db]} {
   165    165   			file mkdir $::appfs::cachedir
   166    166   
   167    167   			sqlite3 ::appfs::db [file join $::appfs::cachedir cache.db]
          168  +
          169  +			::appfs::db timeout 30000
   168    170   		}
   169    171   
   170    172   		# Create tables
   171    173   		db eval {CREATE TABLE IF NOT EXISTS sites(hostname PRIMARY KEY, lastUpdate, ttl);}
   172    174   		db eval {CREATE TABLE IF NOT EXISTS packages(hostname, sha1, package, version, os, cpuArch, isLatest, haveManifest);}
   173    175   		db eval {CREATE TABLE IF NOT EXISTS files(package_sha1, type, time, source, size, perms, file_sha1, file_name, file_directory);}
   174    176