Skip to content

Commit

Permalink
Remove a redundant cache invalidation
Browse files Browse the repository at this point in the history
There is no need to invalidate a cache if nothing will access it before
it is invalidated again.
  • Loading branch information
DemiMarie committed May 5, 2022
1 parent f13fd33 commit 209d186
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion qubes/storage/lvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@ async def _commit(self, vid_to_commit=None, keep=False):
cmd = ['rename', self.vid,
'{}-{}-back'.format(self.vid, int(time.time()))]
await qubes_lvm_coro(cmd, self.log)
await reset_cache_coro()

cmd = ['clone' if keep else 'rename',
vid_to_commit,
Expand Down

0 comments on commit 209d186

Please sign in to comment.