refactor(lib): physically copy sqlite DBs instead of symlinking for cline
- Prevent sqlite DB locking errors across concurrent isolated sessions - Use cp -p for files inside data/db/ during provision_isolation
This commit is contained in:
@@ -812,7 +812,9 @@ provision_isolation() {
|
|||||||
for f in "$HOME/.cline/data/db/"*; do
|
for f in "$HOME/.cline/data/db/"*; do
|
||||||
[ -e "$f" ] || continue
|
[ -e "$f" ] || continue
|
||||||
base="$(basename "$f")"
|
base="$(basename "$f")"
|
||||||
ln -sfn "$f" "$root/data/db/$base"; seeded="${seeded:+$seeded,}data/db/$base"
|
# DB 락 경쟁 크래시 방지를 위해 심볼릭 링크가 아닌 물리 복사(cp -p) 수행
|
||||||
|
cp -p "$f" "$root/data/db/$base"
|
||||||
|
seeded="${seeded:+$seeded,}data/db/$base"
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
agy)
|
agy)
|
||||||
|
|||||||
Reference in New Issue
Block a user