Skip to content

Commit

Permalink
Ignore $clusterTime (#3830)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi authored Dec 7, 2023
1 parent 514acee commit d8de8af
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/handler/common/count.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ type CountParams struct {
ReadConcern *types.Document `ferretdb:"readConcern,ignored"`
Comment string `ferretdb:"comment,ignored"`
LSID any `ferretdb:"lsid,ignored"`
ClusterTime any `ferretdb:"$clusterTime,ignored"`
}

// GetCountParams returns the parameters for the count command.
Expand Down
1 change: 1 addition & 0 deletions internal/handler/common/delete_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ type DeleteParams struct {

WriteConcern *types.Document `ferretdb:"writeConcern,ignored"`
LSID any `ferretdb:"lsid,ignored"`
ClusterTime any `ferretdb:"$clusterTime,ignored"`
}

// Delete represents single delete operation parameters.
Expand Down
1 change: 1 addition & 0 deletions internal/handler/common/distinct.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ type DistinctParams struct {

ReadConcern *types.Document `ferretdb:"readConcern,ignored"`
LSID any `ferretdb:"lsid,ignored"`
ClusterTime any `ferretdb:"$clusterTime,ignored"`
}

// GetDistinctParams returns `distinct` command parameters.
Expand Down
1 change: 1 addition & 0 deletions internal/handler/common/find.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ type FindParams struct {
Min *types.Document `ferretdb:"min,ignored"`
Hint any `ferretdb:"hint,ignored"`
LSID any `ferretdb:"lsid,ignored"`
ClusterTime any `ferretdb:"$clusterTime,ignored"`

ReturnKey bool `ferretdb:"returnKey,unimplemented-non-default"`
ShowRecordId bool `ferretdb:"showRecordId,opt"`
Expand Down
1 change: 1 addition & 0 deletions internal/handler/common/findandmodify.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ type FindAndModifyParams struct {
WriteConcern *types.Document `ferretdb:"writeConcern,ignored"`
BypassDocumentValidation bool `ferretdb:"bypassDocumentValidation,ignored"`
LSID any `ferretdb:"lsid,ignored"`
ClusterTime any `ferretdb:"$clusterTime,ignored"`
}

// UpsertParams represents parameters for upsert, if the document exists UpdateParams is set.
Expand Down
1 change: 1 addition & 0 deletions internal/handler/common/insert.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ type InsertParams struct {
BypassDocumentValidation bool `ferretdb:"bypassDocumentValidation,ignored"`
Comment string `ferretdb:"comment,ignored"`
LSID any `ferretdb:"lsid,ignored"`
ClusterTime any `ferretdb:"$clusterTime,ignored"`
}

// GetInsertParams returns the parameters for an insert command.
Expand Down
1 change: 1 addition & 0 deletions internal/handler/common/update_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ type UpdateParams struct {
BypassDocumentValidation bool `ferretdb:"bypassDocumentValidation,ignored"`
WriteConcern *types.Document `ferretdb:"writeConcern,ignored"`
LSID any `ferretdb:"lsid,ignored"`
ClusterTime any `ferretdb:"$clusterTime,ignored"`
}

// Update represents a single update operation parameters.
Expand Down

0 comments on commit d8de8af

Please sign in to comment.