Bug 166040

Summary: Fix unwanted deletion of record/replay files
Product: WebKit Reporter: Keith Rollin <krollin>
Component: WebKit Misc.Assignee: Keith Rollin <krollin>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, commit-queue, koivisto
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Keith Rollin 2016-12-19 14:56:00 PST
As part of some refactoring, the objects that create the meta files that are part of the record/replay cache would get deleted. They were always getting opened in "write" mode", which would truncate the files. Fix this so that the files are opened in the write modes for record, replay, and neither.
Comment 1 Keith Rollin 2016-12-19 14:58:08 PST
That is, the "right" modes, not the "write" modes.
Comment 2 Keith Rollin 2016-12-19 14:59:00 PST
Created attachment 297481 [details]
Patch
Comment 3 Alex Christensen 2016-12-19 15:05:02 PST
Comment on attachment 297481 [details]
Patch

r=me.
Since the m_loadFileHandle and m_replayFileHandle are used only for logging when replaying, do you think it would be good to have "Log" somewhere in their name?
Comment 4 Keith Rollin 2016-12-19 15:43:42 PST
I'll file a new bug for that, since naming things is one of the Big Unsolved Problems in Computer Science.
Comment 5 WebKit Commit Bot 2016-12-19 16:37:42 PST
Comment on attachment 297481 [details]
Patch

Clearing flags on attachment: 297481

Committed r210005: <http://trac.webkit.org/changeset/210005>
Comment 6 WebKit Commit Bot 2016-12-19 16:37:45 PST
All reviewed patches have been landed.  Closing bug.