From c854e53c2b4f058254baec2cb69074a6b9c60b77 Mon Sep 17 00:00:00 2001 From: Jeffrey Smith II Date: Mon, 3 Apr 2023 13:09:01 -0400 Subject: [PATCH] fix: chmod'ing the manifest is unnecessary (#24165) --- tsdb/index/tsi1/partition.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/tsdb/index/tsi1/partition.go b/tsdb/index/tsi1/partition.go index e92b6a6292..bdd268eb01 100644 --- a/tsdb/index/tsi1/partition.go +++ b/tsdb/index/tsi1/partition.go @@ -1466,9 +1466,6 @@ func (m *Manifest) Write() (int64, error) { tmp = f.Name() - if err = f.Chmod(0666); err != nil { - return fmt.Errorf("failed setting permissions on manifest file %q: %w", tmp, err) - } if _, err = f.Write(buf); err != nil { return fmt.Errorf("failed writing temporary manifest file %q: %w", tmp, err) }