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) return NOMessage, errInvalidArgument(snumPoints)
} }
docmd := func(args []string) error { docmd := func(args []string) error {
nmsg := &Message{} var nmsg Message
*nmsg = *msg nmsg = *msg
nmsg._command = ""
nmsg.Args = args nmsg.Args = args
var d commandDetails var d commandDetails
_, d, err = c.command(nmsg, nil) _, d, err = c.command(&nmsg, nil)
if err != nil { if err != nil {
return err return err
} }