Tech Tip: After a repair, use caution when dealing with the log file
PRODUCT: 4D | VERSION: 11 | PLATFORM: Mac & Win
Published On: June 24, 2009
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
You can use the MSC to repair a data file. However, if you use the data log file (.journal) you should use caution when deciding what to do after the repair:
- When you repair a data file, the .4DD (data), .4DINDx (indexes), and .journal (log) files are moved to a backup folder.
- The *only thing* the Repair produces is a new 4DD file.
- The indexes are rebuilt when you launch in 4D.
- However when you launch a repaired data file that uses a log file, 4D tells you that it can't file the log file (because it was moved by the repair). You are asked to open the log file, or create a new one.
Do not create a new log file unless you understand the consequences. This will become more important if you are using 4D's Backup. The way you restore a backup is to restore an older copy of the database and then start integrating log files. If you're missing any of those log files it won't work.
Unless you think the log file is damaged, you should copy the old one back into the same folder with the new 4DD file. You can also open it from the backup location but that can be more confusing in opening it and later when you are looking for the appropriate log file.