mirror of
https://github.com/xcat2/confluent.git
synced 2025-08-26 13:10:38 +00:00
Only set most recent state
Before, it would delve back to set state if recent entries indicated to not assert the tracked states. Correct that behavior so only last entry counts.
This commit is contained in:
@@ -155,7 +155,7 @@ class Logger(object):
|
||||
binidx = binfile.tell() - 16
|
||||
currsize = 0
|
||||
offsets = collections.deque()
|
||||
termstate = 0
|
||||
termstate = None
|
||||
while binidx > 0 and currsize < size:
|
||||
binfile.seek(binidx, 0)
|
||||
binidx -= 16
|
||||
@@ -168,7 +168,8 @@ class Logger(object):
|
||||
continue
|
||||
currsize += datalen
|
||||
offsets.append((offset, datalen))
|
||||
termstate = termstate | eventaux
|
||||
if termstate is None:
|
||||
termstate = termstate | eventaux
|
||||
fcntl.flock(binfile, fcntl.LOCK_UN)
|
||||
binfile.close()
|
||||
textdata = ''
|
||||
|
Reference in New Issue
Block a user