Uploaded image for project: 'Realm .NET SDK'
  1. Realm .NET SDK
  2. RNET-1129

Realm.DeleteRealm() creates lock file if Realm doesn't exist

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: None

      What happened?

      Hello!

      Not a big issue, but just noticed that calling Realm.DeleteRealm() on a (non-existent) Realm creates its corresponding lock file.

      I understand DeleteRealm() doesn't delete lock files (although unsure why) but it seems strange to create a lock file for a Realm that doesn't exist.

      Of course it's easy to work around in the app, but thought I'd raise it anyway.

      Hope this helps.

      Repro steps

      1. "Test.realm" file does not exist
      2. "Test.realm.lock" file does not exist
      3. Realm.DeleteRealm(config);
      4. "Test.realm.lock" file exists

      NOTE: Config points to "Test.realm"

      Version

      11.7.0

      What Atlas Services are you using?

      Local Database only

      What type of application is this?

      Unity

      Client OS and version

      WIndows 10 (22H2)

      Code snippets

      No response

      Stacktrace of the exception/crash you're getting

      No response

      Relevant log output

      No response

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: