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
LB is now working quite well, with the test app all pages are published properly and all indexes are populated. Now need to run some more tests like bringing a new server online.
/// Save the latest id in the db as the last synced
91
+
/// </summary>
92
+
/// <remarks>
93
+
/// THIS IS NOT THREAD SAFE
94
+
/// </remarks>
95
+
internalvoidFirstSync()
90
96
{
91
-
//already syncing, don't process
92
-
if(_syncing)return;
93
-
94
-
if(_lastId==-1)
97
+
//we haven't synced - in this case we aren't going to sync the whole thing, we will assume this is a new
98
+
// server and it will need to rebuild it's own persisted cache. Currently in that case it is Lucene and the xml
99
+
// cache file.
100
+
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");
//we haven't synced - in this case we aren't going to sync the whole thing, we will assume this is a new
99
-
// server and it will need to rebuild it's own persisted cache. Currently in that case it is Lucene and the xml
100
-
// cache file.
101
-
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");
//TODO: At least we are logging this now, before there was no indication of anything going wrong, but surely there's a better way to deal with this?
430
+
// Since the document is out of date, we should probably rebuild it right?
431
+
LogHelper.Warn<content>("No parent node could be found with parentID: "+parentId+" therefore the xml cache document could not be updated. The XML cache file is out of sync, you may need to delete the umbraco.config file and restart your web application");
432
+
returnxmlContentCopy;
433
+
}
434
+
429
435
430
436
// define xpath for getting the children nodes (not properties) of a node
0 commit comments