fix(meta): remove double index increment of set meta

pull/16525/head
ricky 2020-01-14 11:11:43 +08:00
parent f1d26652e9
commit c1e11e732e
1 changed files with 0 additions and 5 deletions

View File

@ -932,12 +932,7 @@ func (c *Client) DropSubscription(database, rp, name string) error {
func (c *Client) SetData(data *Data) error {
c.mu.Lock()
// reset the index so the commit will fire a change event
c.cacheData.Index = 0
// increment the index to force the changed channel to fire
d := data.Clone()
d.Index++
if err := c.commit(d); err != nil {
return err