From 250269b9e192156f3d39e6caa3c9875588b097e1 Mon Sep 17 00:00:00 2001 From: Liangliang Gu Date: Tue, 14 Apr 2020 13:49:33 +0800 Subject: [PATCH] let tiflash tmp_path use DataDir instead of DeployDir (#1270) (#1271) --- roles/tiflash/defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/tiflash/defaults/main.yml b/roles/tiflash/defaults/main.yml index 6c8919f1b..8a25f27e7 100644 --- a/roles/tiflash/defaults/main.yml +++ b/roles/tiflash/defaults/main.yml @@ -1,8 +1,8 @@ --- tiflash_dir: "{{ deploy_dir }}/tiflash" -tmp_path: "{{ deploy_dir }}/tiflash/data/tmp" data_dir: "{{ deploy_dir }}/tiflash/data/db" +tmp_path: "{{ data_dir | split_string(',') | get_element_by_index(0) }}/tmp" cluster_manager_path: "{{ deploy_dir }}/bin/tiflash/flash_cluster_manager" cluster_manager_log: "{{ deploy_dir }}/log/tiflash_cluster_manager.log" tiflash_tikv_log: "{{ deploy_dir }}/log/tiflash_tikv.log"