Skip to content
Snippets Groups Projects
Commit 24e6bd56 authored by Julien Leduc's avatar Julien Leduc
Browse files

removing replace-str option as -L just concatenates args after the replace-str...

removing replace-str option as -L just concatenates args after the replace-str place holder. toto is not a valid rados object which prevents the objectstore cleanup.
parent f0cc6b14
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ if [ "$KEEP_OBJECTSTORE" == "0" ]; then
else
if [[ $(rados -p $OBJECTSTOREPOOL --id $OBJECTSTOREID --namespace $OBJECTSTORENAMESPACE ls | wc -l) -gt 0 ]]; then
echo "Rados objectstore ${OBJECTSTOREURL} is not empty: deleting content"
rados -p $OBJECTSTOREPOOL --id $OBJECTSTOREID --namespace $OBJECTSTORENAMESPACE ls | xargs -itoto -L 100 -P 100 rados -p $OBJECTSTOREPOOL --id $OBJECTSTOREID --namespace $OBJECTSTORENAMESPACE rm toto
rados -p $OBJECTSTOREPOOL --id $OBJECTSTOREID --namespace $OBJECTSTORENAMESPACE ls | xargs -L 100 -P 100 rados -p $OBJECTSTOREPOOL --id $OBJECTSTOREID --namespace $OBJECTSTORENAMESPACE rm
fi
cta-objectstore-initialize $OBJECTSTOREURL
echo "Rados objectstore ${OBJECTSTOREURL} content:"
......
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