Megatest

Check-in [320ed4c8d5]
Login
Overview
Comment:test remove wal mode
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | v1.63-no-wal
Files: files | file ages | folders
SHA1: 320ed4c8d545d9c2866f6ba0cfb3ec3a352c7866
User & Date: bjbarcla on 2017-03-01 15:22:25
Other Links: branch diff | manifest | tags
Context
2017-03-01
15:35
reversed polarity of walmode Closed-Leaf check-in: e6ea5fd0f3 user: bjbarcla tags: v1.63-no-wal
15:22
test remove wal mode check-in: 320ed4c8d5 user: bjbarcla tags: v1.63-no-wal
2017-02-23
16:41
bumped version check-in: 738c84b513 user: bjbarcla tags: v1.63, v1.6309
Changes

Modified db.scm from [08ea3af600] to [9d0175c3bb].

218
219
220
221
222
223
224
225

226
227
228
229
230
231
232
233
    (if file-write ;; dir-writable
	(let (;; (lock    (obtain-dot-lock fname 1 5 10))
	      (db      (sqlite3:open-database fname)))
	  (sqlite3:set-busy-handler! db (make-busy-timeout 136000))
	  ;; (db:set-sync db)
	  (sqlite3:execute db "PRAGMA synchronous = 0;")
	  (if (not file-exists)
	      (begin

		(if (string-match "^/tmp/.*" fname) ;; this is a file in /tmp
		    (sqlite3:execute db "PRAGMA journal_mode=WAL;")
		    (print "Creating " fname " in NON-WAL mode."))
		(initproc db)))
	  ;; (release-dot-lock fname)
	  db)
	(begin
	  (debug:print 2 *default-log-port* "WARNING: opening db in non-writable dir " fname)







|
>
|







218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
    (if file-write ;; dir-writable
	(let (;; (lock    (obtain-dot-lock fname 1 5 10))
	      (db      (sqlite3:open-database fname)))
	  (sqlite3:set-busy-handler! db (make-busy-timeout 136000))
	  ;; (db:set-sync db)
	  (sqlite3:execute db "PRAGMA synchronous = 0;")
	  (if (not file-exists)
              (begin
		(if (and (not (configf:lookup *configdat* "setup" "no-wal"))
                         (string-match "^/tmp/.*" fname)) ;; this is a file in /tmp
		    (sqlite3:execute db "PRAGMA journal_mode=WAL;")
		    (print "Creating " fname " in NON-WAL mode."))
		(initproc db)))
	  ;; (release-dot-lock fname)
	  db)
	(begin
	  (debug:print 2 *default-log-port* "WARNING: opening db in non-writable dir " fname)