Fixed wrong stat of cache after new creation file
And added a test for stat of cache after new creation file
This commit is contained in:
committed by
Andrew Gaul
parent
2f412804e2
commit
023aaf7dff
@ -2173,6 +2173,16 @@ bool FdEntity::PunchHole(off_t start, size_t size)
|
||||
return true;
|
||||
}
|
||||
|
||||
// [NOTE]
|
||||
// Indicate that a new file's is dirty.
|
||||
// This ensures that both metadata and data are synced during flush.
|
||||
//
|
||||
void FdEntity::MarkDirtyNewFile()
|
||||
{
|
||||
pagelist.Init(0, false, true);
|
||||
is_meta_pending = true;
|
||||
}
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* tab-width: 4
|
||||
|
||||
Reference in New Issue
Block a user