mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 18:36:12 +02:00
FIX end-of-file boundary checking
This commit is contained in:
parent
192da034c3
commit
45c670f576
@ -185,8 +185,8 @@ class UnbufferedFileReader:
|
||||
line = self.fd.readline()
|
||||
self.position = self.fd.tell()
|
||||
|
||||
if last_line_read:
|
||||
self.log.debug("FileReader stoping, offset %d >= %d" \
|
||||
if line == '' or last_line_read:
|
||||
self.log.debug("FileReader stoping, offset %d >= %s" \
|
||||
% (self.position, self.end))
|
||||
self.fd.close()
|
||||
return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user