Skip to content

Commit

Permalink
Use file-write-date instead of get-universal-time when loading the db.
Browse files Browse the repository at this point in the history
  • Loading branch information
stassats committed Oct 1, 2013
1 parent f790c95 commit 6f1ccf6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions disk.lisp
Expand Up @@ -715,10 +715,12 @@
(load-time storage)))

(defun load-data (storage &optional file)
(let ((*storage* storage)
(time (get-universal-time)))
(let* ((*storage* storage)
(file (or file (storage-file *storage*)))
(time (or (file-write-date file)
(get-universal-time))))
(with-reading-packages
(read-file (or file (storage-file *storage*))))
(read-file file))
(interlink-all-objects-first-time)
(setf (modified storage) nil
(load-time storage) time)
Expand Down

0 comments on commit 6f1ccf6

Please sign in to comment.