summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-04-28 12:40:04 +0100
committerErik Johnston <erik@matrix.org>2015-04-28 12:40:04 +0100
commitaf27b84ff769ceb9fe1aaa10c9435586be4c6867 (patch)
tree64ebdf61415da3fc4f5ab2e5cfc9a986fadf1e54 /scripts
parentCorrectly handle total/remaining counts in the presence of sent_transasctions... (diff)
downloadsynapse-af27b84ff769ceb9fe1aaa10c9435586be4c6867.tar.xz
Correctly handle total/remaining counts in the presence of sent_transasctions table
Diffstat (limited to 'scripts')
-rw-r--r--scripts/port_from_sqlite_to_postgres.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/port_from_sqlite_to_postgres.py b/scripts/port_from_sqlite_to_postgres.py
index 1e52d82fe0..a40a93ca76 100644
--- a/scripts/port_from_sqlite_to_postgres.py
+++ b/scripts/port_from_sqlite_to_postgres.py
@@ -454,7 +454,7 @@ class Porter(object):
 
         total_count = remaining_count + inserted_rows
 
-        defer.returnValue((next_chunk, remaining_count, total_count))
+        defer.returnValue((next_chunk, inserted_rows, total_count))
 
     @defer.inlineCallbacks
     def _get_remaining_count_to_port(self, table, next_chunk):