sed -i'.replicaPath' "s;^${INITIATOR[$__replicaDir]};;g""${INITIATOR[$__replicaDir]}${INITIATOR[$__stateDir]}/${INITIATOR[$__type]}$timestampCurrentFilename"
sed -i'.withReplicaPath' "s;^${INITIATOR[$__replicaDir]};;g""${INITIATOR[$__replicaDir]}${INITIATOR[$__stateDir]}/${INITIATOR[$__type]}$timestampCurrentFilename"
retval=$?
if[$retval -ne 0];then
Logger "Cannot remove prepending replicaPaths for current initiator timestamp file.""ERROR"
return$retval
fi
sed -i'.replicaPath' "s;^${TARGET[$__replicaDir]};;g""${INITIATOR[$__replicaDir]}${INITIATOR[$__stateDir]}/${TARGET[$__type]}$timestampCurrentFilename"
sed -i'.withReplicaPath' "s;^${TARGET[$__replicaDir]};;g""${INITIATOR[$__replicaDir]}${INITIATOR[$__stateDir]}/${TARGET[$__type]}$timestampCurrentFilename"
retval=$?
if[$retval -ne 0];then
Logger "Cannot remove prepending replicaPaths for current target timestamp file.""ERROR"
sed -i'.replicaPath' "s;^${INITIATOR[$__replicaDir]};;g""${INITIATOR[$__replicaDir]}${INITIATOR[$__stateDir]}/${INITIATOR[$__type]}$timestampAfterFilename"
sed -i'.withReplicaPath' "s;^${INITIATOR[$__replicaDir]};;g""${INITIATOR[$__replicaDir]}${INITIATOR[$__stateDir]}/${INITIATOR[$__type]}$timestampAfterFilename"
retval=$?
if[$retval -ne 0];then
Logger "Cannot remove prepending replicaPaths for after initiator timestamp file.""ERROR"
return$retval
fi
sed -i'.replicaPath' "s;^${TARGET[$__replicaDir]};;g""${INITIATOR[$__replicaDir]}${INITIATOR[$__stateDir]}/${TARGET[$__type]}$timestampAfterFilename"
sed -i'.withReplicaPath' "s;^${TARGET[$__replicaDir]};;g""${INITIATOR[$__replicaDir]}${INITIATOR[$__stateDir]}/${TARGET[$__type]}$timestampAfterFilename"
retval=$?
if[$retval -ne 0];then
Logger "Cannot remove prepending replicaPaths for after target timestamp file.""ERROR"
sed -i'.replicaPath' "s;^${INITIATOR[$__replicaDir]};;g""${INITIATOR[$__replicaDir]}${INITIATOR[$__stateDir]}/${INITIATOR[$__type]}$timestampCurrentFilename"
sed -i'.withReplicaPath' "s;^${INITIATOR[$__replicaDir]};;g""${INITIATOR[$__replicaDir]}${INITIATOR[$__stateDir]}/${INITIATOR[$__type]}$timestampCurrentFilename"
retval=$?
if[$retval -ne 0];then
Logger "Cannot remove prepending replicaPaths for current initiator timestamp file.""ERROR"
return$retval
fi
sed -i'.replicaPath' "s;^${TARGET[$__replicaDir]};;g""${INITIATOR[$__replicaDir]}${INITIATOR[$__stateDir]}/${TARGET[$__type]}$timestampCurrentFilename"
sed -i'.withReplicaPath' "s;^${TARGET[$__replicaDir]};;g""${INITIATOR[$__replicaDir]}${INITIATOR[$__stateDir]}/${TARGET[$__type]}$timestampCurrentFilename"
retval=$?
if[$retval -ne 0];then
Logger "Cannot remove prepending replicaPaths for current target timestamp file.""ERROR"
sed -i'.replicaPath' "s;^${INITIATOR[$__replicaDir]};;g""${INITIATOR[$__replicaDir]}${INITIATOR[$__stateDir]}/${INITIATOR[$__type]}$timestampAfterFilename"
sed -i'.withReplicaPath' "s;^${INITIATOR[$__replicaDir]};;g""${INITIATOR[$__replicaDir]}${INITIATOR[$__stateDir]}/${INITIATOR[$__type]}$timestampAfterFilename"
retval=$?
if[$retval -ne 0];then
Logger "Cannot remove prepending replicaPaths for after initiator timestamp file.""ERROR"
return$retval
fi
sed -i'.replicaPath' "s;^${TARGET[$__replicaDir]};;g""${INITIATOR[$__replicaDir]}${INITIATOR[$__stateDir]}/${TARGET[$__type]}$timestampAfterFilename"
sed -i'.withReplicaPath' "s;^${TARGET[$__replicaDir]};;g""${INITIATOR[$__replicaDir]}${INITIATOR[$__stateDir]}/${TARGET[$__type]}$timestampAfterFilename"
retval=$?
if[$retval -ne 0];then
Logger "Cannot remove prepending replicaPaths for after target timestamp file.""ERROR"