diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-22 22:10:04 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-22 22:10:04 +0100 |
commit | 4c99d9a644d86410a93b683d1a34ab6d499b99f9 (patch) | |
tree | 81914740d57ba40a0bcdc5d83237abbdaaffc8fd /common/storage/entitystore.h | |
parent | b05edd5644738e7608d13a8b5b679f43d70f4dd4 (diff) | |
download | sink-4c99d9a644d86410a93b683d1a34ab6d499b99f9.tar.gz sink-4c99d9a644d86410a93b683d1a34ab6d499b99f9.zip |
Fixed revision cleanup
Diffstat (limited to 'common/storage/entitystore.h')
-rw-r--r-- | common/storage/entitystore.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/storage/entitystore.h b/common/storage/entitystore.h index b8e1065..fe75a02 100644 --- a/common/storage/entitystore.h +++ b/common/storage/entitystore.h | |||
@@ -46,7 +46,6 @@ public: | |||
46 | bool add(const QByteArray &type, const ApplicationDomain::ApplicationDomainType &, bool replayToSource, const PreprocessCreation &); | 46 | bool add(const QByteArray &type, const ApplicationDomain::ApplicationDomainType &, bool replayToSource, const PreprocessCreation &); |
47 | bool modify(const QByteArray &type, const ApplicationDomain::ApplicationDomainType &, const QByteArrayList &deletions, bool replayToSource, const PreprocessModification &); | 47 | bool modify(const QByteArray &type, const ApplicationDomain::ApplicationDomainType &, const QByteArrayList &deletions, bool replayToSource, const PreprocessModification &); |
48 | bool remove(const QByteArray &type, const QByteArray &uid, bool replayToSource, const PreprocessRemoval &); | 48 | bool remove(const QByteArray &type, const QByteArray &uid, bool replayToSource, const PreprocessRemoval &); |
49 | void cleanupRevision(qint64 revision); | ||
50 | bool cleanupRevisions(qint64 revision); | 49 | bool cleanupRevisions(qint64 revision); |
51 | 50 | ||
52 | void startTransaction(Sink::Storage::DataStore::AccessMode); | 51 | void startTransaction(Sink::Storage::DataStore::AccessMode); |
@@ -112,6 +111,10 @@ public: | |||
112 | Sink::Log::Context logContext() const; | 111 | Sink::Log::Context logContext() const; |
113 | 112 | ||
114 | private: | 113 | private: |
114 | /* | ||
115 | * Remove any old revisions of the same entity up until @param revision | ||
116 | */ | ||
117 | void cleanupEntityRevisionsUntil(qint64 revision); | ||
115 | void copyBlobs(ApplicationDomain::ApplicationDomainType &entity, qint64 newRevision); | 118 | void copyBlobs(ApplicationDomain::ApplicationDomainType &entity, qint64 newRevision); |
116 | class Private; | 119 | class Private; |
117 | const QSharedPointer<Private> d; | 120 | const QSharedPointer<Private> d; |