summaryrefslogtreecommitdiffstats
path: root/common/synchronizer.cpp
Commit message (Collapse)AuthorAge
* Port away from syncStartv0.1.0Christian Mollekopf2017-03-02
|
* Debug outputChristian Mollekopf2017-02-20
|
* make contacts suitable for applications like sinkshSandro Knauß2017-01-30
|
* Readable uuidChristian Mollekopf2017-01-23
|
* Ensure we don't accidentally spawn more transactions than necessary.Christian Mollekopf2017-01-23
|
* Debug outputChristian Mollekopf2017-01-23
|
* Process sync requests one by oneChristian Mollekopf2017-01-23
|
* Support dependencies between sync requests.Christian Mollekopf2017-01-22
| | | | | | | | | | If one sync task depends on the previous sync task we want to flush in between, so we can query for the results of the previous sync request locally. If we detect such a dependency we temporarily halt all processing of synchronization requests until the flush completes, so we can continue processing.
* Debug outputChristian Mollekopf2017-01-18
|
* Don't overwrite the first job with the continuationChristian Mollekopf2017-01-18
|
* Avoid unnecessary replay requests.Christian Mollekopf2017-01-17
| | | | A single request will replay until the latest revision.
* Handle errors without crashing.Christian Mollekopf2017-01-17
|
* Fixed build issues with pedantic enabledChristian Mollekopf2017-01-12
|
* syncThen is no longer necessaryChristian Mollekopf2017-01-12
|
* Debug outputChristian Mollekopf2017-01-07
|
* Debug outputChristian Mollekopf2017-01-06
|
* Introduced Log::ContextChristian Mollekopf2016-12-22
| | | | | | | To have hierarchical debug output we have to pass around something at run-time, there is no reasonable alternative. Log::Context provides the identifier to do just that and largely replaces the debug component idea.
* Let the preprocessor repeat the types.Christian Mollekopf2016-12-08
|
* Move mail to sent folder after sending itChristian Mollekopf2016-12-06
|
* Don't reference temporary memoryChristian Mollekopf2016-11-29
|
* The synchronization call can be sync.Christian Mollekopf2016-11-29
| | | | | ... because we really just enqueue the request and then wait for the notification.
* Renamed RemoteIdMap to SynchronizerStoreChristian Mollekopf2016-11-28
|
* Added the flush command.Christian Mollekopf2016-11-25
| | | | | | | Instead of trying to actually flush queues, we send a special command through the same queues as the other commands and can thus guarantee that the respective commands have been processed without blocking anything.
* Ensure we always process the full queue and that flushing works.Christian Mollekopf2016-11-22
|
* Process change replays as part of the synchronization queueChristian Mollekopf2016-11-22
|
* Folded the SourceWriteback into the Synchronizer.Christian Mollekopf2016-11-21
| | | | | | | | | | | | By concentrating all communication to the source in one place we get rid of several oddities. * Quite a bit of duplication since both need access to the synchronizationStore and the source. * We currently have an akward locking in place because both classes access the ync store. This is not easier to resolve cleanly. * The live of resource implementers becomes easier. * An implementation could elect to not use changereplay and always do a full sync... (maybe?)
* Prepared new query based synchronization APIChristian Mollekopf2016-11-11
|
* Implement debug stream operators for query.Christian Mollekopf2016-11-07
|
* Removed EntityReaderChristian Mollekopf2016-10-21
|
* Removed the now obsolete EntityStoreChristian Mollekopf2016-10-21
|
* Refactor how the storage is used.Christian Mollekopf2016-10-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the initial refactoring to improve how we deal with the storage. It does a couple of things: * Rename Sink::Storage to Sink::Storage::DataStore to free up the Sink::Storage namespace * Introduce a Sink::ResourceContext to have a single object that can be passed around containing everything that is necessary to operate on a resource. This is a lot better than the multiple separate parameters that we used to pass around all over the place, while still allowing for dependency injection for tests. * Tie storage access together using the new EntityStore that directly works with ApplicationDomainTypes. This gives us a central place where main storage, indexes and buffer adaptors are tied together, which will also give us a place to implement external indexes, such as a fulltextindex using xapian. * Use ApplicationDomainTypes as the default way to pass around entities. Instead of using various ways to pass around entities (buffers, buffer adaptors, ApplicationDomainTypes), only use a single way. The old approach was confusing, and was only done as: * optimization; really shouldn't be necessary and otherwise I'm sure we can find better ways to optimize ApplicationDomainType itself. * a way to account for entities that have multiple buffers, a concept that I no longer deem relevant. While this commit does the bulk of the work to get there, the following commits will refactor more stuff to get things back to normal.
* Don't access the propertyFilter list directly.Christian Mollekopf2016-09-27
|
* Don' create new entities on flag change.Christian Mollekopf2016-09-15
|
* Ported to the kasync revampChristian Mollekopf2016-09-15
|
* A new debug system.Christian Mollekopf2016-07-07
| | | | | | | | | | | | | | | Instead of a single #define as debug area the new system allows for an identifier for each debug message with the structure component.area. The component is a dot separated identifier of the runtime component, such as the process or the plugin. The area is the code component, and can be as such defined at compiletime. The idea of this system is that it becomes possible to i.e. look at the output of all messages in the query subsystem of a specific resource (something that happens in the client process, but in the resource-specific subcomponent). The new macros are supposed to be less likely to clash with other names, hence the new names.
* Commit all databases in the same intervalChristian Mollekopf2016-06-20
|
* Don't create a transaction for every appended message.Christian Mollekopf2016-06-20
| | | | | We create now only one transaction for the whole sync which is also not ideal.
* A working mailtransport resourceChristian Mollekopf2016-06-17
|
* Fixed issues found by clang analyzerChristian Mollekopf2016-06-14
|
* Get folder moves to work, and fix the mime message moving.Christian Mollekopf2016-06-13
|
* Create the drafts folder if necessary and merge it with the sourceChristian Mollekopf2016-06-10
| | | | version
* Moved query logic to EntityReader to make it reusable in the resource.Christian Mollekopf2016-06-09
|
* A way to retrieve the last revision during changereplay.Christian Mollekopf2016-06-03
|
* Avoid referencing stale transactionsChristian Mollekopf2016-05-31
|
* Fixed genericresource so it works with the maildirresourcetestChristian Mollekopf2016-05-29
|
* Moved the classes to individual filesChristian Mollekopf2016-05-28