Megatest

Diff
Login

Differences From Artifact [c5b4d2905e]:

To Artifact [e31481c901]:


309
310
311
312
313
314
315
316


317
318
319


320


321
322
323
324
325
326
327
309
310
311
312
313
314
315

316
317
318
319
320
321
322

323
324
325
326
327
328
329
330
331







-
+
+



+
+
-
+
+







      (set! *db-last-access* (current-seconds))
      (match indat
	((cmd run-id params meta)
	 (let* ((start-t (current-milliseconds))
		;; factor this out and move before this let, it is just
		;; an assert if not ping and dbfname is not correct
		(db-ok  (let* ((dbfname (dbmod:run-id->dbfname run-id))
			       (ok      (equal? dbfname (dbr:dbstruct-dbfname dbstruct))))
			       (ok      (equal? dbfname (dbr:dbstruct-dbfname dbstruct)))
                               (message ""))
			  (case cmd
			    ((ping) #t) ;; we are fine
			    (else
                             (begin
                               (set! message (conc "tcp request handler: dbstruct database file " (dbr:dbstruct-dbfname dbstruct) " not aligned with run-id " run-id))
			     (assert ok "FATAL: database file and run-id not aligned.")))))
			       (assert ok message)))))
                             )
		(ttdat   *server-info*)
		(server-state (tt-state ttdat))
		(status 'ok) ;; anything legit we can do with status?
		(delay-wait 0)
		(result (if (eq? cmd 'ping)
			    *server-signature* ;; (current-process-id) ;; process id or server-signature?
			    (outer-proc cmd run-id params)))