Bug 36001 - SQLiteFileSystem::ensureDatabaseFileExists() doesn't do what it supposed to do.
Summary: SQLiteFileSystem::ensureDatabaseFileExists() doesn't do what it supposed to do.
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-10 21:11 PST by Lyon Chen
Modified: 2010-03-11 09:33 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lyon Chen 2010-03-10 21:11:06 PST
For SQLiteFileSystem::ensureDatabaseFileExists(const String& fileName, bool checkPathOnly), the second parameter is checkPathOnly and it means check path only when it's true, but the only place it's called is DatabaseTracker::openTrackerDatabase(), which calls ensureDatabaseFileExists() with parameter createIfDoesNotExist and it expect the file will be created if it doesn't existed already.

I think SQLiteFileSystem::ensureDatabaseFileExists() should be changed to do as its function name indicates, create the file if it's not existed already.
Comment 1 Lyon Chen 2010-03-11 07:48:35 PST
My bad, it's not a bug.
Comment 2 Yong Li 2010-03-11 09:33:58 PST
close it