Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
abbbi committed Jan 28, 2024
1 parent abb0405 commit 6f09701
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libqmpbackup/qmpcommon.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,14 @@ def transaction_bitmap_add(self, node, name, **kwargs):

def prepare_transaction(self, argv, devices, backupdir):
"""Prepare transaction steps"""
prefix = "FULL"
prefix = argv.level.upper()
sync = "full"
if argv.level == "inc":
prefix = "INC"
sync = "incremental"

bitmap_prefix = "qmpbackup"
persistent = True
if argv.level == "copy":
prefix = "COPY"
self.log.info("Copy backup: no persistent bitmap will be created.")
bitmap_prefix = "qmpbackup-copy"
persistent = False
Expand Down

0 comments on commit 6f09701

Please sign in to comment.