Megatest

Check-in [759f18e4d9]
Login
Overview
Comment:Fixed calls to dbfile:cautious-open-database to correct arguments types of sync-mode and journal-mode. (optional -> non-optional)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | v1.70
Files: files | file ages | folders
SHA1: 759f18e4d9de8670f24375a51966ee9e29e19a54
User & Date: mmgraham on 2023-01-20 16:49:12
Other Links: branch diff | manifest | tags
Context
2023-01-31
16:10
Copied dashboard speedup changes from checkin 51ee5bb785 and added handling for failed glob check-in: ad100ae4c2 user: mmgraham tags: v1.70
2023-01-20
16:49
Fixed calls to dbfile:cautious-open-database to correct arguments types of sync-mode and journal-mode. (optional -> non-optional) check-in: 759f18e4d9 user: mmgraham tags: v1.70
2022-12-27
12:20
Changed version to 1.7011 check-in: 90c94db373 user: mmgraham tags: v1.70, v1.7011
Changes

Modified dbfile.scm from [e95b97d328] to [3c8c0eb1a6].

334
335
336
337
338
339
340
341

342
343
344
345
346
347
348
349
350
351
352
353
354
355
356

357
358
359
360
361
362
363
334
335
336
337
338
339
340

341
342
343
344
345
346
347
348
349
350
351
352
353
354
355

356
357
358
359
360
361
362
363







-
+














-
+







	 (delay-time (* (- 51 tries-left) 1.1))
      	 (write-access (file-write-access? fname))
         (dir-access (file-write-access? (pathname-directory fname)))
         (retry      (lambda ()
		       (thread-sleep! delay-time)
		       (if (> tries-left 0)
			   (dbfile:cautious-open-database fname init-proc
							  sync-mode: sync-mode journal-mode: journal-mode
							  sync-mode journal-mode
							  (- tries-left 1))))))
    (assert (>= tries-left 0) (conc "FATAL: too many attempts in dbfile:cautious-open-database of "fname", giving up."))
    
    (if (and (file-write-access? fname)
	     (file-exists? busy-file))
	(begin
	  (if (common:low-noise-print 120 busy-file)
	      (dbfile:print-err "INFO: dbfile:cautious-open-database: journal file "
				busy-file" exists, trying again in few seconds."))
	  (thread-sleep! 1)
	  (if (eq? tries-left 2)
	      (begin
	  	(dbfile:print-err "INFO: forcing journal rollup "busy-file)
	  	(dbfile:brute-force-salvage-db fname)))
	  (dbfile:cautious-open-database fname init-proc sync-mode: sync-mode journal-mode: journal-mode (- tries-left 1)))
	  (dbfile:cautious-open-database fname init-proc sync-mode journal-mode (- tries-left 1)))
	
	(let* ((result (condition-case
		        (if dir-access
			    (dbfile:with-simple-file-lock
			     (conc fname ".lock")
			     (lambda ()
			       (let* ((db-exists (file-exists? fname))