🌐 AI搜索 & 代理 主页
Skip to content

Commit 54d00eb

Browse files
author
lsabi1234
committed
🐛 Fix bytes_processed exception when reading file with small buffer size #280
1 parent ad82769 commit 54d00eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rethinkdb/cli/_import.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def fill_buffer(self):
511511
if self._buffer_size == JSON_MAX_BUFFER_SIZE:
512512
raise Exception(
513513
f"Error: JSON max buffer size exceeded on file "
514-
f"{self.name} (from position {self.bytes_processed}). "
514+
f"{self.name} (from position {self._bytes_read}). "
515515
f"Use '--max-document-size' to extend your buffer."
516516
)
517517
self._buffer_size = min(self._buffer_size * 2, JSON_MAX_BUFFER_SIZE)

0 commit comments

Comments
 (0)