Skip to content

Commit

Permalink
Fix k3po does not reload labels when labels file size decreases (#972)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaidics committed Apr 22, 2024
1 parent 225ab3c commit 902d736
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private void checkSnapshot()
this.sizeInBytes = -1L;
}

if (this.sizeInBytes == -1L || this.sizeInBytes < Files.size(labelsPath))
if (this.sizeInBytes == -1L || this.sizeInBytes != Files.size(labelsPath))
{
Files.createDirectories(labelsPath.getParent());
try (FileChannel channel = FileChannel.open(labelsPath, CREATE, READ, WRITE))
Expand Down

0 comments on commit 902d736

Please sign in to comment.