Mark store entry as borrowed

This commit is contained in:
Julian Ganz 2016-01-25 12:34:37 +01:00
parent 86ab4ba4b1
commit 540348380e

View file

@ -152,7 +152,8 @@ impl Store {
let mut entries = hsmap.unwrap();
let mut store_entry = entries.entry(id.clone()).or_insert_with(|| StoreEntry::new(id.clone()));
// TODO: update the store entry status
// update the store entry status
store_entry.status = StoreEntryStatus::Borrowed;
// make a file lock entry from the store entry
store_entry.get_entry().map(|entry| FileLockEntry::new(self, entry, id))