Realm C++ SDK Version v2.2.0
|
#include <client_reset.hpp>
Public Member Functions | |
recover_unsynced_changes (std::function< void(db local)> before, std::function< void(db local, db remote)> after) | |
Additional Inherited Members | |
Protected Attributes inherited from realm::internal::bridge::client_reset_mode_base< db > | |
std::function< void(db local)> | m_before |
std::function< void(db local, db remote)> | m_after |
::realm::client_reset_mode | m_mode |
The client device will download a realm which reflects the latest state of the server after a client reset. A recovery process is run locally in an attempt to integrate the server version with any local changes from before the client reset occurred.
The changes are integrated with the following rules:
If the recovery integration fails, the client reset behavior falls back to manual
mode. The recovery integration will fail if the "Client Recovery" setting is not enabled on the server. Integration may also fail in the event of an incompatible schema change.