BOOL CDurableFile::CopyBackupToPrimary(void)
{
	CFileUtil	cFileUtil;

	if (IsBegun())
	{
		return FALSE;
	}

	if (!cFileUtil.Copy(mszRewriteName.Text(), mszFileName.Text()))
	{
		return FALSE;
	}
	return cFileUtil.Compare(mszFileName.Text(), mszRewriteName.Text());
}
BOOL CDurableFile::CheckIdentical(BOOL bThorough, BOOL bLogError)
{
	CFileUtil	cFileUtil;
	BOOL		bResult;

	if (IsBegun())
	{
		return FALSE;
	}

	bResult = cFileUtil.Compare(mszFileName.Text(), mszRewriteName.Text());
	if (bLogError && !bResult)
	{
		return gcLogger.Error2(__METHOD__, " File mismatch [", mszFileName.Text(), "] and [", mszRewriteName.Text(), "].", NULL);
	}
	return bResult;
}