Skip to content

Commit

Permalink
Merge pull request #2804 from freenas/FIX-83699
Browse files Browse the repository at this point in the history
tkt-83699: Fix periodic snapshot task / replication task deletion
  • Loading branch information
themylogin committed Mar 27, 2019
2 parents 9ea0488 + 01baed3 commit 8746436
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/middlewared/middlewared/plugins/replication.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,9 @@ async def do_delete(self, id):
id
)

await self.middleware.call("service.restart", "cron")
await self.middleware.call("zettarepl.update_tasks")

return response

@item_method
Expand Down
1 change: 1 addition & 0 deletions src/middlewared/middlewared/plugins/snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ async def do_delete(self, id):
)

await self.middleware.call('service.restart', 'cron')
await self.middleware.call('zettarepl.update_tasks')

return response

Expand Down

0 comments on commit 8746436

Please sign in to comment.