summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
* Debugmessage for received commands in resourceChristian Mollekopf2015-07-31
|
* Fixed possible race conditions.Christian Mollekopf2015-07-31
| | | | | | | | | | | * Ensure we always create the thread-local event loop before any objects in the thread are created, and guarantee the done handler is immediately registered before the query can execute. * Call the callback on emitter destruction in the worker thread, where the eventloop lives, instead of the main thread. With this I can no longer reproduce any deadlocks or memory corruptions that I used to get occasionally before.
* Tested command loop with Ping command.Christian Mollekopf2015-07-30
| | | | | | Ping is a command that by definition doesn't affect the resource, and thus can be used at all times to check if the resource is still alive.
* ResourceCommunicationTestChristian Mollekopf2015-07-30
|
* Moved lockfile into synchronizerChristian Mollekopf2015-07-30
| | | | For better testability of listener.
* Made storagetest quicker.Christian Mollekopf2015-07-30
|
* Made the pipeline an implementation detail of the resource.Christian Mollekopf2015-07-30
| | | | | This removes one dependency from the Listener and will allow us to test the Listener better.
* Forward revision updates through resourceChristian Mollekopf2015-07-28
|
* Moved listener to commonChristian Mollekopf2015-07-28
| | | | So we can use it in tests as well.
* Test life queries in the generic facadeChristian Mollekopf2015-07-28
|
* Allow to inject a fake ResourceInstanceChristian Mollekopf2015-07-28
|
* Abstracted the storage so the facade can be tested.Christian Mollekopf2015-07-27
|
* Moved storage access, adaptor conversion and index access to centralChristian Mollekopf2015-07-27
| | | | place
* Don't set the current revision upon start.Christian Mollekopf2015-07-27
| | | | The client can simply read it from the database.
* Only query for new revisions.Christian Mollekopf2015-07-27
| | | | | Instead of clearing the result everytime we only query for the stuff that has changed.
* Removed hardcoded instance identifierChristian Mollekopf2015-07-27
|
* Create numbered eventsChristian Mollekopf2015-07-27
|
* Fixed clientChristian Mollekopf2015-07-27
|
* Less hardcoded namesChristian Mollekopf2015-07-27
|
* Fixed misleading function nameChristian Mollekopf2015-07-27
|
* Mode FacadeFactory to separate file, mutex protected it, and loadedChristian Mollekopf2015-07-27
| | | | | | | | resource The factory is potentially used from several queries simultaneously, so it's now mutex protected. Additionally we try to load the plugins directly in the factory.
* Test generic stuff separately from the dummyresourceChristian Mollekopf2015-07-27
|
* An easy way to switch between threaded and non-threaded query executionChristian Mollekopf2015-07-23
|
* More trace messagesChristian Mollekopf2015-07-23
|
* Fixed the client, only optionally delete the db, and avoid constantChristian Mollekopf2015-07-23
| | | | | | model resets. We can now even start multiple clients.
* Separate test debug output a littleChristian Mollekopf2015-07-23
|
* Warning on command failure, null debugstream to ignore messagesChristian Mollekopf2015-07-23
|
* Immediately close the socket after a shutdown notification.Christian Mollekopf2015-07-23
| | | | | | | | Otherwise it can happen that the synchronizer receives the shutdown command from a ResourceAccess instance, and while the synchronizer waits for quit to be called, a new ResourceAccess instance already connects to the synchronizer. That new connection will then of course be unexpectedly killed once quit is called in the synchronizer.
* DebuginfoChristian Mollekopf2015-07-23
|
* Copy the identifier as well.Christian Mollekopf2015-07-23
| | | | Otherwise the value could silently start to point to invalid memory.
* Copy constructor for domain-typeChristian Mollekopf2015-07-23
| | | | QByteArrays cannot be copied bytewise
* Fixed buildChristian Mollekopf2015-07-23
|
* Call callbacks for already completed commands before abortingChristian Mollekopf2015-07-23
|
* Deal with non-existing indexChristian Mollekopf2015-07-23
|
* Avoid slots being called after the clients have been cleaned up already.Christian Mollekopf2015-07-23
| | | | | It is possible that the clientDropped slot is called when we close the socket, so better disconnect everythign first.
* Avoid warning about running jobs.Christian Mollekopf2015-07-23
| | | | | | "Left jobs running while shutting down ResourceAccess", happens because the shutdown command destroys the instance before the method can clean up.
* Give up after trying to connect for a whileChristian Mollekopf2015-07-23
|
* Pass command around as QByteArrayChristian Mollekopf2015-07-23
| | | | | | | Simpler api, GenericResource didn't honor size anyways, and we copy the command for now to avoid sideeffects of data coming in in the meantime (although that should generally work since data is always appended).
* Removed one extra codepathChristian Mollekopf2015-07-23
| | | | That was an optimization anyways
* Immediately start reading if there is data availableChristian Mollekopf2015-07-20
|
* The callback is supposed to be always thereChristian Mollekopf2015-07-19
|
* Skip commands we fail to process so we don't get stuckChristian Mollekopf2015-07-19
|
* Modify/Delete actionsChristian Mollekopf2015-07-19
|
* Don't require a smartpointer where not necessaryChristian Mollekopf2015-07-15
|
* Modify/Delete commandsChristian Mollekopf2015-07-14
|
* Allow passing in the metadataChristian Mollekopf2015-07-14
| | | | Perhaps this should also happen in the form of properties?
* Removed unnecessary template parameterChristian Mollekopf2015-07-14
|
* cleanupChristian Mollekopf2015-07-09
|
* Read-only transaction during sync.Christian Mollekopf2015-07-09
|
* Use remoteId index instead of scanChristian Mollekopf2015-07-09
|