diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-07 02:34:10 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-07 02:34:10 +0200 |
commit | a98311fbc807b83ecfc65a17f98464e5f1f9b3f8 (patch) | |
tree | a0c954404535fa832f7ddbd4f455fc67fe69bf4e /common/storage.h | |
parent | 32c507fa0565547a187632db8a80c07babb95d9d (diff) | |
download | sink-a98311fbc807b83ecfc65a17f98464e5f1f9b3f8.tar.gz sink-a98311fbc807b83ecfc65a17f98464e5f1f9b3f8.zip |
Fixed getUids by type filtering.
We used to simply return all uids.
Requires "sinksh upgrade"
Diffstat (limited to 'common/storage.h')
-rw-r--r-- | common/storage.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/storage.h b/common/storage.h index 8c129df..c39b904 100644 --- a/common/storage.h +++ b/common/storage.h | |||
@@ -198,9 +198,9 @@ public: | |||
198 | static QByteArray getTypeFromRevision(const Transaction &, qint64 revision); | 198 | static QByteArray getTypeFromRevision(const Transaction &, qint64 revision); |
199 | static void recordRevision(Transaction &, qint64 revision, const QByteArray &uid, const QByteArray &type); | 199 | static void recordRevision(Transaction &, qint64 revision, const QByteArray &uid, const QByteArray &type); |
200 | static void removeRevision(Transaction &, qint64 revision); | 200 | static void removeRevision(Transaction &, qint64 revision); |
201 | static void recordUid(DataStore::Transaction &transaction, const QByteArray &uid); | 201 | static void recordUid(DataStore::Transaction &transaction, const QByteArray &uid, const QByteArray &type); |
202 | static void removeUid(DataStore::Transaction &transaction, const QByteArray &uid); | 202 | static void removeUid(DataStore::Transaction &transaction, const QByteArray &uid, const QByteArray &type); |
203 | static void getUids(const Transaction &, const std::function<void(const QByteArray &uid)> &); | 203 | static void getUids(const QByteArray &type, const Transaction &, const std::function<void(const QByteArray &uid)> &); |
204 | 204 | ||
205 | bool exists() const; | 205 | bool exists() const; |
206 | 206 | ||