diff options
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r-- | apps/tagcache.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index b6c86d7ddb..253e48a6dd 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c @@ -170,7 +170,7 @@ static const char * const tag_type_str[] = { #endif /* ndef LOGF_ENABLE */ /* Status information of the tagcache. */ -struct tagcache_stat tc_stat; +static struct tagcache_stat tc_stat; /* Queue commands. */ enum tagcache_queue { @@ -5079,6 +5079,12 @@ bool tagcache_is_usable(void) { return tc_stat.initialized && tc_stat.ready; } +#ifdef HAVE_TC_RAMCACHE +bool tagcache_is_in_ram(void) +{ + return tc_stat.ramcache; +} +#endif int tagcache_get_commit_step(void) { return tc_stat.commit_step; |