We updated the server the past two days, you should see some speed performance of our site.

Jump to content
mdavis6537

Variable to check against to see if its initial sync?

Recommended Posts

Is there a variable I can check against to see if its an initial sync or not? Initial sync meaning the first time the user has done a sync with this file.

Reason: MirrorSync is telling me it cant sync (the first time) because there is records in the database. I do have one record which is used in my update process from an old file to a new file. So I just want to delete that record before the first sync to resolve this error.

Thanks.

 

Edit - I guess I could just check for any records existing in the mirrorsync table, correct?

Edited by mdavis6537

Share this post


Link to post
Share on other sites

I was able to resolve this by checking the mirrorsync table for any records. 

Share this post


Link to post
Share on other sites

The existence of a record in the MirrorSync table does not necessarily indicate that a sync has occurred. There are two cases that I can think of off-hand where this is not true:

1) If you downloaded a full copy of the database (as opposed to an empty clone), then it is normal for there to be a record where type='hub' and another where type='server'

2) If you downloaded an empty clone, but the first sync failed for some reason, such as a network problem, there will be a record in the MirrorSync table.

The safest way to tell if a sync has occurred is to look in the MirrorSync table for a record where type='client' and see if the lastClientToken field is not empty. That would indicate that a sync has occurred.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×

Important Information

By using this site, you agree to our Terms of Use.