Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
a0b5ba2e
Kaydet (Commit)
a0b5ba2e
authored
Nis 15, 2012
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
re-open output file on save to fsync to improve first-start performance
üst
c9f30fa2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
docfile.cxx
sfx2/source/doc/docfile.cxx
+12
-1
shell.cxx
ucb/source/ucp/file/shell.cxx
+0
-4
No files found.
sfx2/source/doc/docfile.cxx
Dosyayı görüntüle @
a0b5ba2e
...
@@ -1912,9 +1912,20 @@ void SfxMedium::Transfer_Impl()
...
@@ -1912,9 +1912,20 @@ void SfxMedium::Transfer_Impl()
xComEnv
=
new
::
ucbhelper
::
CommandEnvironment
(
xInteractionHandler
,
xComEnv
=
new
::
ucbhelper
::
CommandEnvironment
(
xInteractionHandler
,
Reference
<
::
com
::
sun
::
star
::
ucb
::
XProgressHandler
>
()
);
Reference
<
::
com
::
sun
::
star
::
ucb
::
XProgressHandler
>
()
);
if
(
::
utl
::
LocalFileHelper
::
IsLocalFile
(
aDest
.
GetMainURL
(
INetURLObject
::
NO_DECODE
)
)
||
!
aDest
.
removeSegment
()
)
rtl
::
OUString
aDestURL
(
aDest
.
GetMainURL
(
INetURLObject
::
NO_DECODE
)
);
if
(
::
utl
::
LocalFileHelper
::
IsLocalFile
(
aDestURL
)
||
!
aDest
.
removeSegment
()
)
{
{
TransactedTransferForFS_Impl
(
aSource
,
aDest
,
xComEnv
);
TransactedTransferForFS_Impl
(
aSource
,
aDest
,
xComEnv
);
// Hideous - no clean way to do this, so we re-open the file just to fsync it
osl
::
File
aFile
(
aDestURL
);
if
(
aFile
.
open
(
osl_File_OpenFlag_Write
)
==
osl
::
FileBase
::
E_None
)
{
aFile
.
sync
();
OSL_TRACE
(
"fsync'd saved file '%s'
\n
"
,
rtl
::
OUStringToOString
(
aDestURL
,
RTL_TEXTENCODING_UTF8
).
getStr
()
);
aFile
.
close
();
}
}
}
else
else
{
{
...
...
ucb/source/ucp/file/shell.cxx
Dosyayı görüntüle @
a0b5ba2e
...
@@ -1909,10 +1909,6 @@ shell::write( sal_Int32 CommandId,
...
@@ -1909,10 +1909,6 @@ shell::write( sal_Int32 CommandId,
}
}
}
while
(
nReadBytes
==
nRequestedBytes
);
}
while
(
nReadBytes
==
nRequestedBytes
);
aFile
.
sync
();
// fsync / flush it to disk.
OSL_TRACE
(
"fsync'd file '%s'
\n
"
,
rtl
::
OUStringToOString
(
aUnqPath
,
RTL_TEXTENCODING_UTF8
).
getStr
()
);
err
=
aFile
.
close
();
err
=
aFile
.
close
();
if
(
err
!=
osl
::
FileBase
::
E_None
)
if
(
err
!=
osl
::
FileBase
::
E_None
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment