Documentation
Returns two values: a transaction id and a list of object ids
(of objects that may be partially committed).
Source
(defun load-commit-file (cache)
"Returns two values: a transaction id and a list of object ids
(of objects that may be partially committed)."
(with-open-file (stream (commit-filename cache)
:direction :output
:if-exists :supersede
:if-does-not-exist :create
:element-type '(unsigned-byte 8))
(let* ((transaction-id (deserialize stream))
(nr-objects (deserialize stream))
(objects (loop repeat nr-objects
collect (deserialize stream))))
(values transaction-id objects))))
Source Context