Darien Raymond 9 anni fa
parent
commit
13b1bf09cf
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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
 		}