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

[C-API] Need a way to ensure exlusive access to realm file operations

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      Describe your problem or use case

      As part of implementing support for bundling realm files in Realm Kotlin we need exclusive access to the realm file path to prevent multiple processes to create/copy the file concurrently.

      Describe the solution you'd like

      It would be convenient with something like DB::call_with_lock(realm_path) which is used to achieve the above in Realm Java. This is deliberately not exposed to the C-API (https://github.com/realm/realm-core/issues/5058#issuecomment-1001647865), so I am open to suggestions that enables me to achieving something similar.

            Assignee:
            nicola.cabiddu@mongodb.com Nicola Cabiddu
            Reporter:
            claus.rorbech@mongodb.com Claus Rørbech (Inactive)
            AD Core
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: