Revert "Use object store"

This reverts commit 965e997d8e4a4b83ab271842c6d5ed7490257111.
This commit is contained in:
Kenneth Geisshirt 2018-06-28 10:35:23 +02:00
parent 1d6e213682
commit bd45d6f0bf
2 changed files with 3 additions and 2 deletions

View File

@ -1183,7 +1183,8 @@ void RealmClass<T>::compute_size(ContextType ctx, ObjectType this_object, Argume
args.validate_maximum(0); args.validate_maximum(0);
SharedRealm realm = *get_internal<T, RealmClass<T>>(this_object); SharedRealm realm = *get_internal<T, RealmClass<T>>(this_object);
return_value.set(Value::from_number(ctx, realm->compute_size())); auto size = realm->read_group().compute_aggregated_byte_size();
return_value.set(Value::from_number(ctx, size));
} }
} // js } // js

@ -1 +1 @@
Subproject commit c12c750ecef2ba198d20ff073df05dfa2f750102 Subproject commit 0bcb9643b8fb14323df697999b79c4a5341a8a21