repo: Disable uncompressed object cache on non-writable repos

While we did support disabling the uncompressed-objects-cache
per-repository:

1) We didn't actually respect that operation when doing
   CHECKOUT_MODE_USER on archive-z2 repositories
2) It'd be better to automatically detect we can't write to the
   repo and disable the uncompressed cache then.
This commit is contained in:
Colin Walters committed 2014-10-16 14:54:34 -04:00
1 parent d546abfa2a
commit 884a9b27e9
3 files changed
+16 -12

No files matched your search

+1
View File
@@ -58,6 +58,7 @@ struct OstreeRepo {
GPtrArray *cached_content_indexes;
gboolean inited;
gboolean writable;
gboolean in_transaction;
gboolean disable_fsync;
GHashTable *loose_object_devino_hash;