зеркало из https://github.com/mozilla/gecko-dev.git
fix 269861 make mork not write any data or touch timestamp if the db is not dirty, sr=mscott
This commit is contained in:
Родитель
55f1dda9b6
Коммит
9d24f7c070
|
@ -770,11 +770,18 @@ morkWriter::DirtyAll(morkEnv* ev)
|
|||
return ev->Good();
|
||||
}
|
||||
|
||||
|
||||
mork_bool
|
||||
morkWriter::OnNothingDone(morkEnv* ev)
|
||||
{
|
||||
mWriter_Incremental = !mWriter_NeedDirtyAll; // opposites
|
||||
|
||||
if (!mWriter_Store->IsStoreDirty())
|
||||
{
|
||||
mWriter_Phase = morkWriter_kPhaseWritingDone;
|
||||
return morkBool_kTrue;
|
||||
}
|
||||
|
||||
// morkStream* stream = mWriter_Stream;
|
||||
if ( mWriter_NeedDirtyAll )
|
||||
this->DirtyAll(ev);
|
||||
|
|
Загрузка…
Ссылка в новой задаче