Skip to content

Commit 434e956

Browse files
authored
Merge pull request #419 from CartoDB/Fixing_sincedb_primary_key_reuse
Fixing primary key reuse issues
2 parents 0e49d98 + e8993a3 commit 434e956

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beaver/worker/tail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ def _sincedb_update_position(self, lines=0, force_update=False):
422422

423423
conn = sqlite3.connect(self._sincedb_path, isolation_level=None)
424424
cursor = conn.cursor()
425-
query = 'insert or ignore into sincedb (fid, filename) values (:fid, :filename);'
425+
query = 'insert or replace into sincedb (fid, filename) values (:fid, :filename);'
426426
cursor.execute(query, {
427427
'fid': self._fid,
428428
'filename': self._filename

0 commit comments

Comments
 (0)