Skip to content

Commit

Permalink
Make the failover end time check compatible with original value (#3450)
Browse files Browse the repository at this point in the history
  • Loading branch information
yux0 authored Aug 12, 2020
1 parent 68a0fe2 commit 60c3463
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ func (m *cassandraMetadataPersistenceV2) GetDomain(request *p.GetDomainRequest)
replicationConfig.Clusters = p.GetOrUseDefaultClusters(m.currentClusterName, replicationConfig.Clusters)

var responseFailoverEndTime *int64
if failoverEndTime != emptyFailoverEndTime {
if failoverEndTime > emptyFailoverEndTime {
domainFailoverEndTime := failoverEndTime
responseFailoverEndTime = common.Int64Ptr(domainFailoverEndTime)
}
Expand Down Expand Up @@ -515,7 +515,7 @@ func (m *cassandraMetadataPersistenceV2) ListDomains(request *p.ListDomainsReque
domain.ReplicationConfig.Clusters = p.DeserializeClusterConfigs(replicationClusters)
domain.ReplicationConfig.Clusters = p.GetOrUseDefaultClusters(m.currentClusterName, domain.ReplicationConfig.Clusters)

if failoverEndTime != emptyFailoverEndTime {
if failoverEndTime > emptyFailoverEndTime {
domainFailoverEndTime := failoverEndTime
domain.FailoverEndTime = common.Int64Ptr(domainFailoverEndTime)
}
Expand Down

0 comments on commit 60c3463

Please sign in to comment.