initWriteBuffer initializes the write buffer file for durability. Any existing buffer content is discarded since unsync'd changes are lost on restart. This function acquires f.mu internally.
()
| 2086 | // Any existing buffer content is discarded since unsync'd changes are lost on restart. |
| 2087 | // This function acquires f.mu internally. |
| 2088 | func (f *VFSFile) initWriteBuffer() error { |
| 2089 | f.mu.Lock() |
| 2090 | defer f.mu.Unlock() |
| 2091 | return f.initWriteBufferWithLock() |
| 2092 | } |
| 2093 | |
| 2094 | // initWriteBufferWithLock initializes the write buffer file for durability. |
| 2095 | // Any existing buffer content is discarded since unsync'd changes are lost on restart. |
no test coverage detected