Browse Source

Merge branch 'trac2832'

Paul Selkirk 12 years ago
parent
commit
f85cdd324c
2 changed files with 7 additions and 1 deletions
  1. 6 0
      src/bin/cfgmgr/plugins/datasrc.spec.pre.in
  2. 1 1
      src/lib/datasrc/cache_config.cc

+ 6 - 0
src/bin/cfgmgr/plugins/datasrc.spec.pre.in

@@ -68,6 +68,12 @@
                                 "item_name": "name",
                                 "item_type": "string",
                                 "item_optional": true
+                            },
+                            {
+                                "item_name": "cache-type",
+                                "item_type": "string",
+                                "item_optional": true,
+                                "item_default": "local"
                             }
                         ]
                     }

+ 1 - 1
src/lib/datasrc/cache_config.cc

@@ -37,7 +37,7 @@ getEnabledFromConf(const Element& conf) {
 
 std::string
 getSegmentTypeFromConf(const Element& conf) {
-    // If cache-zones is not explicitly configured, use the default type.
+    // If cache-type is not explicitly configured, use the default type.
     // (Ideally we should retrieve the default from the spec).
     if (!conf.contains("cache-type")) {
         return ("local");