Darien Raymond 9 년 전
부모
커밋
13b1bf09cf
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      common/io/buffered_writer.go

+ 2 - 0
common/io/buffered_writer.go

@@ -78,9 +78,11 @@ func (this *BufferedWriter) Flush() error {
 }
 
 func (this *BufferedWriter) FlushWithoutLock() error {
+	fmt.Println("BufferedWriter flushing")
 	defer this.buffer.Clear()
 	for !this.buffer.IsEmpty() {
 		nBytes, err := this.writer.Write(this.buffer.Value)
+		fmt.Printf("BufferedWriting flushed %d bytes.\n", nBytes)
 		if err != nil {
 			return err
 		}