-
Type: Bug
-
Resolution: Won't Fix
-
Priority: 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
- "Test.realm" file does not exist
- "Test.realm.lock" file does not exist
- Realm.DeleteRealm(config);
- "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