Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

Only one syncRequest per file in SynchronizationService's queue [Part 1]

Vincent Bourgmayer requested to merge 296-o-oneRequest-perFile-v2 into v1-oreo

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

Merge request reports

Loading