From 965e997d8e4a4b83ab271842c6d5ed7490257111 Mon Sep 17 00:00:00 2001 From: Kenneth Geisshirt Date: Wed, 20 Jun 2018 18:17:10 +0200 Subject: [PATCH] Use object store --- src/js_realm.hpp | 3 +-- src/object-store | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/js_realm.hpp b/src/js_realm.hpp index 3870f7ce..4f41994c 100644 --- a/src/js_realm.hpp +++ b/src/js_realm.hpp @@ -1183,8 +1183,7 @@ void RealmClass::compute_size(ContextType ctx, ObjectType this_object, Argume args.validate_maximum(0); SharedRealm realm = *get_internal>(this_object); - auto size = realm->read_group().compute_aggregated_byte_size(); - return_value.set(Value::from_number(ctx, size)); + return_value.set(Value::from_number(ctx, realm->compute_size())); } } // js diff --git a/src/object-store b/src/object-store index 0bcb9643..c12c750e 160000 --- a/src/object-store +++ b/src/object-store @@ -1 +1 @@ -Subproject commit 0bcb9643b8fb14323df697999b79c4a5341a8a21 +Subproject commit c12c750ecef2ba198d20ff073df05dfa2f750102