mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-08-29 18:23:40 +08:00
test cron
This commit is contained in:
parent
458f872fe3
commit
cff9ee39be
@ -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, "")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user