mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
fix typos in comments
Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
parent
7551d799f7
commit
f283126084
2 changed files with 2 additions and 2 deletions
|
@ -138,7 +138,7 @@ func (tbf *tmpBlocksFile) Finalize() error {
|
|||
tbf.buf = tbf.buf[:0]
|
||||
r := fs.NewReaderAt(tbf.f)
|
||||
|
||||
// Hint the OS that the file is read almost sequentiallly.
|
||||
// Hint the OS that the file is read almost sequentially.
|
||||
// This should reduce the number of disk seeks, which is important
|
||||
// for HDDs.
|
||||
r.MustFadviseSequentialRead(true)
|
||||
|
|
|
@ -52,7 +52,7 @@ func MustWriteSync(path string, data []byte) {
|
|||
// in the middle of the write.
|
||||
//
|
||||
// If the file at path already exists, then the file is overwritten atomically if canOverwrite is true.
|
||||
// Otherwise error is returned.
|
||||
// Otherwise, error is returned.
|
||||
func MustWriteAtomic(path string, data []byte, canOverwrite bool) {
|
||||
// Check for the existing file. It is expected that
|
||||
// the MustWriteAtomic function cannot be called concurrently
|
||||
|
|
Loading…
Reference in a new issue