Hi,
Issue : When the slave server is run for the first time, the catalog
thread quits and impacts on user logins ..
Patch : Wait till the catalog is created ( takes some time for slave
catalog to sync from master! )
Fixes #243524.
Please review.
Thanks,
Johnny
Index: Catalog.cs
===================================================================
--- Catalog.cs (revision 6749)
+++ Catalog.cs (working copy)
@@ -258,6 +258,10 @@
/// <returns>N/A - returns when local object down == true.</returns>
static private void ProcessEvents()
{
+ //In Slaves ,The first time.. Wait till the catalog is created.
+ while ( catalog == null )
+ Thread.Sleep (3 * 1000); //Wait For 3 seconds.
+
while( down == false )
{
// Wait for something to be added to the queue.
@@ -427,11 +431,11 @@
/// <returns>N/A </returns>
static private void ScanCollections()
{
- CatalogEntry catentry;
-
if ( catalog != null )
{
log.Debug( "Starting collection scan..." );
+
+ CatalogEntry catentry;
ICSList collections = store.GetCollectionsByDomain( domain.ID );
foreach( ShallowNode sn in collections )
{
Index: ChangeLog
===================================================================
--- ChangeLog (revision 6749)
+++ ChangeLog (working copy)
@@ -1,3 +1,8 @@
+2007-03-16 Johnny Jacob <[EMAIL PROTECTED]>
+
+ * catalog.cs (ProcessEvents) : Wait till catalog collection is
+ available. Fixes #243524.
+
2007-01-23 Johnny Jacob <[EMAIL PROTECTED]>
* Report.cs : Create the report collection with the server
_______________________________________________
ifolder-dev mailing list
[email protected]
http://forge.novell.com/mailman/listinfo/ifolder-dev