lib/storage: don't save persistent node ID on shutdown

It is supposed to be saved right after it was generated, there is no reason re-write it again.

Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>
This commit is contained in:
Zakhar Bessarab 2024-07-04 18:52:04 +04:00
parent 7402ee0801
commit 3df456dd35
No known key found for this signature in database
GPG key ID: 932B34D6FE062023

View file

@ -919,8 +919,6 @@ func (s *Storage) MustClose() {
nextDayMetricIDs := s.nextDayMetricIDs.Load()
s.mustSaveNextDayMetricIDs(nextDayMetricIDs)
s.mustSaveNodeID()
// Release lock file.
fs.MustClose(s.flockF)
s.flockF = nil