Skip to content

Commit 9c1d56a

Browse files
committed
Do not use the temporary loaded AnnotationGraph in the cache, but make sure it is loaded from disk the next time it is needed.
1 parent dee8b87 commit 9c1d56a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

graphannis/src/annis/db/corpusstorage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ impl CorpusStorage {
954954
// make it known to the cache
955955
cache.insert(
956956
corpus_name.clone(),
957-
Arc::new(RwLock::new(CacheEntry::Loaded(graph))),
957+
Arc::new(RwLock::new(CacheEntry::NotLoaded)),
958958
);
959959
check_cache_size_and_remove_with_cache(
960960
cache,

graphannis/src/annis/db/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,3 @@ mod plan;
77
pub mod relannis;
88
pub mod sort_matches;
99
pub mod token_helper;
10-
11-
pub use graphannis_core::annostorage::AnnotationStorage;

0 commit comments

Comments
 (0)