Skip to content
Snippets Groups Projects
Commit f6ed3bff authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti
Browse files

Make the abort more resilient.

If a 'repack -R' operation is cancelled (e.g. ^C), the request was stuck in status
ABORTING. Now it is possible to re-abort such requests, given that aborts
are idempotent and thread-safe.
parent 6ff9a0c5
No related branches found
No related tags found
No related merge requests found
......@@ -348,7 +348,7 @@ def cancelRepack():
SELECT reqId
FROM StageRepackRequest
WHERE StageRepackRequest.RepackVID = :vid
AND status IN (6, 0, 1) -- SUBMITTED, STARTING, ONGOING
AND status IN (6, 0, 1, 4) -- SUBMITTED, STARTING, ONGOING, ABORTING
'''
stAbort = '''
BEGIN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment