From bd45d6f0bf191b9f48592ba5ce988d29c7086db2 Mon Sep 17 00:00:00 2001 From: Kenneth Geisshirt Date: Thu, 28 Jun 2018 10:35:23 +0200 Subject: [PATCH] Revert "Use object store" This reverts commit 965e997d8e4a4b83ab271842c6d5ed7490257111. --- src/js_realm.hpp | 3 ++- src/object-store | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/js_realm.hpp b/src/js_realm.hpp index 4f41994c..3870f7ce 100644 --- a/src/js_realm.hpp +++ b/src/js_realm.hpp @@ -1183,7 +1183,8 @@ void RealmClass::compute_size(ContextType ctx, ObjectType this_object, Argume args.validate_maximum(0); SharedRealm realm = *get_internal>(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 diff --git a/src/object-store b/src/object-store index c12c750e..0bcb9643 160000 --- a/src/object-store +++ b/src/object-store @@ -1 +1 @@ -Subproject commit c12c750ecef2ba198d20ff073df05dfa2f750102 +Subproject commit 0bcb9643b8fb14323df697999b79c4a5341a8a21