Source
(defun load-roots (rucksack)
;; Read roots (i.e. object ids) from the roots file (if there is
;; one). Also load the highest transaction id and the (object ids
;; of the) class and slot index tables.
(let ((roots-file (rucksack-roots-pathname rucksack)))
(when (probe-file roots-file)
(destructuring-bind (root-list class-index slot-index
&optional
;; Added in version 0.1.20.
highest-transaction)
(load-objects roots-file)
(with-slots (roots class-index-table slot-index-tables highest-transaction-id)
rucksack
(setf roots root-list)
(when class-index
(setf class-index-table class-index))
(when slot-index
(setf slot-index-tables slot-index))
(when highest-transaction
(setf highest-transaction-id highest-transaction))))))
rucksack)
Source Context