issue a warning if dup journal entries are found (pdddbg)

This commit is contained in:
bunnie 2022-03-29 04:37:35 +08:00
parent 0cf27be3b0
commit afb9974309

View file

@ -753,6 +753,8 @@ class Fscb:
if pp.valid() and (cur_pp.journal() < pp.journal()):
logging.debug("FSCB replace {} /with/ {}".format(cur_pp.as_str(), pp.as_str()))
self.free_space[pp.page_number() * 4096] = pp
elif cur_pp.journal() == pp.journal():
logging.warning("Duplicate journal number found:\n {} (in table)\n {} (incoming)".format(cur_pp.as_str(), pp.as_str()))
# this is the "AAD" used to encrypt the FastSpace
def aad(version=0x01_01, dna=0):