test cron

This commit is contained in:
wangchuxiao 2022-12-28 12:02:56 +08:00
parent 458f872fe3
commit cff9ee39be

View File

@ -130,13 +130,12 @@ func deleteMongoMsg(operationID string, ID string, index int64, delStruct *delMs
msg.Msg = bytes msg.Msg = bytes
msg.SendTime = 0 msg.SendTime = 0
hasMarkDelFlag = true hasMarkDelFlag = true
log.NewDebug(operationID, ID, msgPb.Seq)
} else { } else {
if err := delMongoMsgsPhysical(delStruct.delUidList); err != nil { if err := delMongoMsgsPhysical(delStruct.delUidList); err != nil {
return 0, err return 0, err
} }
if hasMarkDelFlag { if hasMarkDelFlag {
log.NewInfo(operationID, ID, "hasMarkDelFlag", "index:", index, "msgPb:", msgPb, msgs.UID) log.NewInfo(operationID, ID, "hasMarkDelFlag", "index:", index, "msgPb:", msgPb, msgs.UID, msgs.Msg)
if err := db.DB.UpdateOneMsgList(msgs); err != nil { if err := db.DB.UpdateOneMsgList(msgs); err != nil {
return delStruct.getSetMinSeq(), utils.Wrap(err, "") return delStruct.getSetMinSeq(), utils.Wrap(err, "")
} }