]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/options: changed default immutable object cache path
authorJason Dillaman <dillaman@redhat.com>
Mon, 20 Jul 2020 16:57:57 +0000 (12:57 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 20 Jul 2020 16:57:57 +0000 (12:57 -0400)
Switch the default path for the immutable object cache from "/tmp" to
"/tmp/ceph_immutable_object_cache" to prevent the deletion of all
files in the "/tmp" directory and sub-directories for unconfigured
daemons.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/common/options.cc

index 3ff9807aca282bb1684a0f92cdb6398eb2e84da2..898a4bed2c3f8291129c8fb21bdc59e2dc3debeb 100644 (file)
@@ -7747,7 +7747,7 @@ static std::vector<Option> get_rbd_mirror_options() {
 static std::vector<Option> get_immutable_object_cache_options() {
   return std::vector<Option>({
     Option("immutable_object_cache_path", Option::TYPE_STR, Option::LEVEL_ADVANCED)
-    .set_default("/tmp")
+    .set_default("/tmp/ceph_immutable_object_cache")
     .set_description("immutable object cache data dir"),
 
     Option("immutable_object_cache_sock", Option::TYPE_STR, Option::LEVEL_ADVANCED)