From 540348380eae5424f19d36cda3336e2fb2955291 Mon Sep 17 00:00:00 2001 From: Julian Ganz Date: Mon, 25 Jan 2016 12:34:37 +0100 Subject: [PATCH] Mark store entry as borrowed --- libimagstore/src/store.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libimagstore/src/store.rs b/libimagstore/src/store.rs index 6df78c4d..87fd4c75 100644 --- a/libimagstore/src/store.rs +++ b/libimagstore/src/store.rs @@ -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))