Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-1342

SyncManager::run_file_action ignores delete result

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Sync

      When we call SyncManager::imediately_run_file_actions during manual client reset recovery while someone is holding a lock for the file (e.g. open the Realm with Studio on Windows), Core will report the action as successful even if it fails. The reason is that when the action is DeleteRealm, the result from remove_realm is ignored and we always return true:

      https://github.com/realm/realm-core/blob/165bb205de58ce87a900fff4e42de4c7d64b61cc/src/realm/object-store/sync/sync_manager.cpp#L179-L182

            Assignee:
            jonathan.reams@mongodb.com Jonathan Reams
            Reporter:
            nikola.irinchev@mongodb.com Nikola Irinchev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: