Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: sayedppqq <sayed@appscode.com>
  • Loading branch information
sayedppqq committed Apr 25, 2024
1 parent 83d78d6 commit 2a0d145
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/databases/mongo/oplog/applier.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,7 @@ func indexSpecFromCommitIndexBuilds(op db.Oplog) (string, []client.IndexDocument
if !ok {
return "", nil, NewTypeAssertionError("bson.D", fmt.Sprintf("indexes[%d]", i), elemE.Value)
}
for j := range elements {
elemE = elements[j]
for _, elemE := range elements {
if elemE.Key == "key" {
if indexSpecs[i].Key, ok = elemE.Value.(bson.D); !ok {
return "", nil, NewTypeAssertionError("bson.D", "key", elemE.Value)
Expand Down

0 comments on commit 2a0d145

Please sign in to comment.