You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//we don't care if there's servers listed or not, if distributed call is enabled we will make the call
54
+
55
+
if(_initialized==false)
56
+
{
57
+
returnfalse;
58
+
}
63
59
60
+
//we don't care if there's servers listed or not, if distributed call is enabled we will make the call
64
61
returnUseDistributedCalls;
65
62
}
66
63
@@ -102,7 +99,18 @@ internal void FirstSync()
102
99
//we haven't synced - in this case we aren't going to sync the whole thing, we will assume this is a new
103
100
// server and it will need to rebuild it's own persisted cache. Currently in that case it is Lucene and the xml
104
101
// cache file.
105
-
LogHelper.Warn<DatabaseServerMessenger>("No last synced Id found, this generally means this is a new server/install. The server will adjust it's last synced id to the latest found in the database and will start maintaining cache updates based on that id");
102
+
LogHelper.Warn<DatabaseServerMessenger>("No last synced Id found, this generally means this is a new server/install. The server will rebuild its caches and indexes and then adjust it's last synced id to the latest found in the database and will start maintaining cache updates based on that id");
//if there's been nothing sync, perform a first sync, this will store the latest id
323
+
if(_lastId==-1)
324
+
{
325
+
FirstSync();
326
+
}
327
+
328
+
_initialized=true;
329
+
}
330
+
else
331
+
{
332
+
LogHelper.Warn<DatabaseServerMessenger>("The app is not configured or cannot connect to the database, this server cannot be initialized with "+typeof(DatabaseServerMessenger)+", distributed calls will not be enabled for this server");
0 commit comments