Skip to content

Commit

Permalink
RavenDB-22585 : add missing zeros to buildVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
aviv committed Jul 8, 2024
1 parent e63da03 commit 57082fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Raven.Server/Smuggler/Migration/Importer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,20 @@ private async Task SaveLastState(long operationId, ImportInfo previousImportInfo
if (smugglerResult == null)
return;

if ((_buildVersion >= 40000 && _buildVersion < 41000) || _buildVersion == 40)
if ((_buildVersion >= 40_000 && _buildVersion < 41_000) || _buildVersion == 40)
{
// prevent NRE, counter were added in 4.1
smugglerResult.Counters = new SmugglerProgressBase.CountsWithSkippedCountAndLastEtag();
}

if ((_buildVersion >= 40000 && _buildVersion < 50000) || (_buildVersion >= 40 && _buildVersion < 50))
if ((_buildVersion >= 40_000 && _buildVersion < 50_000) || (_buildVersion >= 40 && _buildVersion < 50))
{
// prevent NRE, time series were added in 5.0
smugglerResult.TimeSeries = new SmugglerProgressBase.CountsWithSkippedCountAndLastEtag();
}

if ((_buildVersion >= 4000 && _buildVersion <= 54133) ||
(_buildVersion >= 6000 && _buildVersion <= 60035) ||
if ((_buildVersion >= 40_000 && _buildVersion <= 54_133) ||
(_buildVersion >= 60_000 && _buildVersion <= 60_035) ||
(_buildVersion >= 40 && _buildVersion < 54))
{
// prevent NRE, time series deleted ranges were added in 5.4.201 and 6.0.105
Expand Down

0 comments on commit 57082fc

Please sign in to comment.