Skip to content

Commit

Permalink
Inline namespace.ReadOnly instead of declaring it as var.
Browse files Browse the repository at this point in the history
  • Loading branch information
Linas Naginionis committed Nov 11, 2021
1 parent 4b27532 commit 28ceb75
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/dbnode/storage/bootstrap/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,8 @@ func (b bootstrapProcess) Run(
var (
ropts = namespace.Metadata.Options().RetentionOptions()
idxopts = namespace.Metadata.Options().IndexOptions()
readOnly = namespace.ReadOnly
dataRanges = b.targetRangesForData(at, ropts, readOnly)
indexRanges = b.targetRangesForIndex(at, ropts, idxopts, readOnly)
dataRanges = b.targetRangesForData(at, ropts, namespace.ReadOnly)
indexRanges = b.targetRangesForIndex(at, ropts, idxopts, namespace.ReadOnly)
firstRanges = b.newShardTimeRanges(
dataRanges.firstRangeWithPersistTrue.Range,
namespace.Shards,
Expand Down

0 comments on commit 28ceb75

Please sign in to comment.