-
Type: Bug
-
Resolution: Fixed
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
?
-
3612
-
Not Needed
What happened?
All RealmObjects in a Realm are deleted on Compact when ShouldDeleteIfMigrationNeeded is set to true.
(Regression since 12.0.0)
Repro steps
Execute the NUnit-Test: https://github.com/markusroessler/RealmCompactBug/blob/main/RealmCompactBugTest/UnitTest1.cs
The test fails on line 41
Note: The test passes with Realm 11.7.0
Version
12.2.0
What Atlas Services are you using?
Local Database only
What type of application is this?
Console/Server
Client OS and version
Mac OS 14.5
Code snippets
No response
Stacktrace of the exception/crash you're getting
No response
Relevant log output
No response
- is caused by
-
RCORE-2145 Realm::compact writes incorrect file format version
- Closed