Skip to content

Commit

Permalink
handle sync every compatible with old
Browse files Browse the repository at this point in the history
  • Loading branch information
absolute8511 committed Jul 18, 2018
1 parent 60dff75 commit d5c949b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions consistence/nsqlookup_coord_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,10 @@ func (self *NsqLookupCoordinator) CreateTopic(topic string, meta TopicMetaInfo)
return err
}
meta.MagicCode = oldMeta.MagicCode
// handle old topic with large sync every param
if oldMeta.SyncEvery >= MAX_SYNC_EVERY {
meta.SyncEvery = oldMeta.SyncEvery
}
if oldMeta != meta {
return ErrAlreadyExist
}
Expand Down

0 comments on commit d5c949b

Please sign in to comment.