Skip to content

Commit

Permalink
remove shardkeyautodisc cal event (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsh-yam authored May 2, 2024
1 parent 4a2d37b commit 36771d0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/coordinatorsharding.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,18 +439,6 @@ func (crd *Coordinator) PreprocessSharding(requests []*netstring.Netstring) (boo
logmsg += fmt.Sprintf("&sqlhash=%d", sqlhash)
logger.GetLogger().Log(logger.Verbose, logmsg)
}
// restricting cal event to only String type Shard Keys
if GetConfig().ShardKeyValueTypeIsString {
evt := cal.NewCalEvent(EvtTypeSharding, EvtNameShardKeyAutodisc, cal.TransOK, "")
evt.AddDataStr("shardkey", shardkey)
evt.AddDataInt("shardid", shardid)
if len(shardRecs) > 0 {
evt.AddDataInt("scuttleid", int64(shardRecs[0].bin))
evt.AddDataInt("flags", int64(shardRecs[0].flags))
}
evt.AddDataInt("sqlhash", sqlhash)
evt.Completed()
}
}
}

Expand Down

0 comments on commit 36771d0

Please sign in to comment.