зеркало из https://github.com/mozilla/gecko-dev.git
Bug 724207 - Save 15-20ms on startup from unused file attributes fetch when opening files. r=neil.
This commit is contained in:
Родитель
b0ce243e0e
Коммит
74e7a459bf
|
@ -942,8 +942,8 @@ nsLocalFile::InitWithPath(const nsAString &filePath)
|
|||
NS_IMETHODIMP
|
||||
nsLocalFile::OpenNSPRFileDesc(PRInt32 flags, PRInt32 mode, PRFileDesc **_retval)
|
||||
{
|
||||
nsresult rv = ResolveAndStat();
|
||||
if (NS_FAILED(rv) && rv != NS_ERROR_FILE_NOT_FOUND)
|
||||
nsresult rv = Resolve();
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
return OpenFile(mResolvedPath, flags, mode, _retval);
|
||||
|
|
Загрузка…
Ссылка в новой задаче