Only one syncRequest per file in SynchronizationService's queue [Part 1]
Description
In some specific (but potentially not rare) context, eDrive can have multiple syncRequest (for upload/Download) in the queue, waiting to be executed.
This can generate extra data consumption & memory usage.
This MR is a v2, it only handles one part of the issue: check that new SyncRequest are not present in the queue. Another MR for part 2 will be made, to check that there is no Transfer running for the file concerned by the new syncRequest.
I got stuck in MR v1 for this topics. So I decided to split it.
Issue(s)
https://gitlab.e.foundation/e/os/backlog/-/issues/296
Test:
Non regression
Check list
-
Self review -
Self test -
Reviewer's review
Edited by Vincent Bourgmayer