Skip to content

Commit

Permalink
fix(backend): 缩短加锁保护的范围 TencentBlueKing#6819
Browse files Browse the repository at this point in the history
  • Loading branch information
ymakedaq committed Sep 10, 2024
1 parent eee274f commit 6438382
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dbm-ui/backend/flow/utils/script_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@
cp /data/install/dbactuator /data/install/dbactuator-{{uid}}
fi
fi
) 200>"$lock_file"
cd /data/install/dbactuator-{{uid}}
chmod +x dbactuator
./dbactuator {{db_type}} {{action}} --uid {{uid}} --root_id {{root_id}} --node_id {{node_id}} --version_id {{version_id}} -c {{non_sensitive_payload}} --payload $1
) 200>"$lock_file"
""" # noqa

# riak actuator 执行的shell命令,引入文件MD5值的比较,避免并发执行过程中输出错误信息,误导日志的捕捉
Expand Down

0 comments on commit 6438382

Please sign in to comment.