Skip to content
Snippets Groups Projects
Commit 8ac265ab authored by Daniel Nemergut's avatar Daniel Nemergut
Browse files

Using hard links instead of moving the rawdata directory to not harm previous spools

parent de1458e6
No related branches found
No related tags found
2 merge requests!1669Catchup with main,!1632Removing rawdata race conditions
......@@ -12,8 +12,8 @@ $SBIN_PATH/framework.sh -d .
chmod 770 .
if [ ! -z "$PREV_PROCESSING_DIR" ] && [ -d "../$PREV_PROCESSING_DIR/rawdata/" ] && [ ! -z "$(ls -A ../$PREV_PROCESSING_DIR/rawdata/)" ]; then
# Reuse the raw data from the previous version
mv ../$PREV_PROCESSING_DIR/rawdata/ .
# Reuse the raw data from the previous version with hard links
cp -lR ../$PREV_PROCESSING_DIR/rawdata/ .
else
# Run the product fetcher
cd rawdata/
......
......@@ -12,8 +12,8 @@ $SBIN_PATH/framework.sh -d .
chmod 770 .
if [ ! -z "$PREV_PROCESSING_DIR" ] && [ -d "../$PREV_PROCESSING_DIR/rawdata/" ] && [ ! -z "$(ls -A ../$PREV_PROCESSING_DIR/rawdata/)" ]; then
# Reuse the raw data from the previous version
mv ../$PREV_PROCESSING_DIR/rawdata/ .
# Reuse the raw data from the previous version with hard links
cp -lR ../$PREV_PROCESSING_DIR/rawdata/ .
else
# Run the product fetcher
cd rawdata/
......
......@@ -12,8 +12,8 @@ $SBIN_PATH/framework.sh -d .
chmod 770 .
if [ ! -z "$PREV_PROCESSING_DIR" ] && [ -d "../$PREV_PROCESSING_DIR/rawdata/" ] && [ ! -z "$(ls -A ../$PREV_PROCESSING_DIR/rawdata/)" ]; then
# Reuse the raw data from the previous version
mv ../$PREV_PROCESSING_DIR/rawdata/ .
# Reuse the raw data from the previous version with hard links
cp -lR ../$PREV_PROCESSING_DIR/rawdata/ .
else
# Run the product fetcher
cd rawdata/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment