Skip to content

Commit

Permalink
Merge pull request #12 from omec-project/dev-nfinstanceid
Browse files Browse the repository at this point in the history
 new field nfinstanceid added in keepalive and chunk tables
  • Loading branch information
vthiruveedula committed Jan 9, 2023
2 parents c1415d9 + 32cd3a3 commit fd4d121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drsm/chunk.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (d *Drsm) GetNewChunk() (*chunk, error) {
// Let's confirm if this gets updated in DB
docId := fmt.Sprintf("chunkid-%d", cn)
filter := bson.M{"_id": docId}
update := bson.M{"_id": docId, "type": "chunk", "podId": d.clientId.PodName, "podInstance": d.clientId.PodInstance, "podIp": d.clientId.PodIp}
update := bson.M{"_id": docId, "type": "chunk", "chunkId": docId, "podId": d.clientId.PodName, "podInstance": d.clientId.PodInstance, "podIp": d.clientId.PodIp}
inserted := d.mongo.RestfulAPIPostOnly(d.sharedPoolName, filter, update)
if inserted != true {
log.Printf("Adding chunk %v failed. Retry again ", cn)
Expand Down

0 comments on commit fd4d121

Please sign in to comment.