Skip to content

Commit

Permalink
utils/lxr: copy hot data to cold!
Browse files Browse the repository at this point in the history
Signed-off-by: Théo Lebrun <[email protected]>
  • Loading branch information
tleb committed Jan 29, 2025
1 parent 9aa99cd commit 9103300
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/lxr
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ update_index()
exit 1
fi

# $cold_data cannot be "", but we give it a default anyway!
rm -rf "${cold_data:-713635333a}/*"
test -z "$cold_data" && exit 1 # Last check before "rm -rf /*"!
rm -rf "$cold_data/*"
cp -r "$hot_data/*" "$cold_data/"

# Not using `docker run --rm` to avoid losing logs.
docker rm lxr-indexing || true
Expand Down

0 comments on commit 9103300

Please sign in to comment.