Megatest

Diff
Login

Differences From Artifact [a9056f8cb1]:

To Artifact [bffce543ab]:


120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
	       newdb)
	     (stack-pop! (dbr:dbstruct-dbstack dbstruct)))
	 (db:open-db dbstruct)))
    ((locked)
     (let* ((current-other (dbr:dbstruct-current-other dbstruct)) ;; contains the name of the current "other" db to work with
	    (locked-db     (dbr:dbstruct-lookup-other-db dbstruct current-other)))
       (if locked-db
	   locked-db
	   (let* ((link-tree (common:get-link-tree))
		  (dbdir     (conc link-tree "/.db")) ;; sure, let's use the old .db dir
		  (dbdat     (db:open-megatest-db
			      path: dbdir
			      name: (conc (time->string (seconds->local-time sec) "%Y")
					  "-q" (seconds->quarter sec)  ".db"))))
	     (hash-table-set! (dbr:dbstruct-other-dbs dbstruct) current-other dbdat)







|







120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
	       newdb)
	     (stack-pop! (dbr:dbstruct-dbstack dbstruct)))
	 (db:open-db dbstruct)))
    ((locked)
     (let* ((current-other (dbr:dbstruct-current-other dbstruct)) ;; contains the name of the current "other" db to work with
	    (locked-db     (dbr:dbstruct-lookup-other-db dbstruct current-other)))
       (if locked-db
	   locked-db ;; problem here is we don't know which locked db to open
	   (let* ((link-tree (common:get-link-tree))
		  (dbdir     (conc link-tree "/.db")) ;; sure, let's use the old .db dir
		  (dbdat     (db:open-megatest-db
			      path: dbdir
			      name: (conc (time->string (seconds->local-time sec) "%Y")
					  "-q" (seconds->quarter sec)  ".db"))))
	     (hash-table-set! (dbr:dbstruct-other-dbs dbstruct) current-other dbdat)