Fix massinsert dev call

This commit is contained in:
tidwall 2018-12-03 15:35:32 -07:00
parent 72f7627152
commit 1c972ad578
1 changed files with 4 additions and 3 deletions

View File

@ -77,11 +77,12 @@ func (c *Server) cmdMassInsert(msg *Message) (res resp.Value, err error) {
return NOMessage, errInvalidArgument(snumPoints)
}
docmd := func(args []string) error {
nmsg := &Message{}
*nmsg = *msg
var nmsg Message
nmsg = *msg
nmsg._command = ""
nmsg.Args = args
var d commandDetails
_, d, err = c.command(nmsg, nil)
_, d, err = c.command(&nmsg, nil)
if err != nil {
return err
}