monitor write pattern: avoid timing due to locking

This commit is contained in:
chrislu
2021-12-28 01:10:35 -08:00
parent 80db8b13d8
commit 2422556456
2 changed files with 3 additions and 4 deletions

View File

@@ -35,8 +35,6 @@ func newPageWriter(file *File, chunkSize int64) *PageWriter {
func (pw *PageWriter) AddPage(offset int64, data []byte) {
pw.writerPattern.MonitorWriteAt(offset, len(data))
glog.V(4).Infof("%v AddPage [%d, %d) streaming:%v", pw.f.fullpath(), offset, offset+int64(len(data)), pw.writerPattern.IsStreamingMode())
chunkIndex := offset / pw.chunkSize