mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-20 07:19:17 +01:00
fix typos in comments
Signed-off-by: hagen1778 <roman@victoriametrics.com>
(cherry picked from commit f283126084
)
This commit is contained in:
parent
e8af156655
commit
c99700ae15
@ -140,7 +140,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 New Issue
Block a user