TITLE: Repository instance operation rollback may not remove rollback file
DESCRIPTION: Fixed the rollback logic for new instance files.
rollbackFs.close();
//
- // Now truncate the data file to that size:
+ // If the instance data file does not yet exist, create it
//
-
- //
- // If the fileSize is zero, then create the InstanceDataFile and exit.
- //
- if ( fileSize == 0 )
+ if (fileSize == 0)
{
fstream ofs;
}
ofs.close();
- PEG_METHOD_EXIT();
- return true;
}
+ //
+ // Truncate the data file to its initial size
+ //
+
if (!System::truncateFile(path.getCString(), fileSize))
{
PEG_METHOD_EXIT();