diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-06-05 22:01:54 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-06-05 22:01:54 +0200 |
commit | 94063baa9e3015771f64501b28d68bd162fb7bff (patch) | |
tree | 34b9c42e6fbbc4f07e38adade7e830e25ba95271 /common/storage_common.cpp | |
parent | c98860e19b53c01eabcdb031dfff4ce755500d63 (diff) | |
download | sink-94063baa9e3015771f64501b28d68bd162fb7bff.tar.gz sink-94063baa9e3015771f64501b28d68bd162fb7bff.zip |
A more reasonable limit for revisions
Diffstat (limited to 'common/storage_common.cpp')
-rw-r--r-- | common/storage_common.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/storage_common.cpp b/common/storage_common.cpp index 9648ea6..6982a4c 100644 --- a/common/storage_common.cpp +++ b/common/storage_common.cpp | |||
@@ -154,9 +154,9 @@ bool Storage::isInternalKey(const QByteArray &key) | |||
154 | 154 | ||
155 | QByteArray Storage::assembleKey(const QByteArray &key, qint64 revision) | 155 | QByteArray Storage::assembleKey(const QByteArray &key, qint64 revision) |
156 | { | 156 | { |
157 | Q_ASSERT(revision <= 9999); | 157 | Q_ASSERT(revision <= 9223372036854775807); |
158 | Q_ASSERT(key.size() == 38); | 158 | Q_ASSERT(key.size() == 38); |
159 | return key + QByteArray::number(revision).rightJustified(4, '0', false); | 159 | return key + QByteArray::number(revision).rightJustified(19, '0', false); |
160 | } | 160 | } |
161 | 161 | ||
162 | QByteArray Storage::uidFromKey(const QByteArray &key) | 162 | QByteArray Storage::uidFromKey(const QByteArray &key) |