Correctly increment the _next_id initially

pull/4/merge
Erik Johnston 10 years ago
parent 86fc9b617c
commit 3c741682e5
  1. 6
      synapse/storage/util/id_generators.py

@ -55,9 +55,11 @@ class IdGenerator(object):
)
val, = txn.fetchone()
self._next_id = val or 2
cur = val or 0
cur += 1
self._next_id = cur + 1
return 1
return cur
class StreamIdGenerator(object):

Loading…
Cancel
Save