diff options
author | Ritu Sood <Ritu.Sood@intel.com> | 2020-04-13 16:45:39 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-04-13 16:45:39 +0000 |
commit | 502b61039dbdc9089768a49b87163e654d8cbfb7 (patch) | |
tree | ea6d652ad8baf78574dec5b14f7bc959bbf21204 /src/orchestrator/pkg/infra | |
parent | 10b17da590fc43622c6080815f65fbbb2721b640 (diff) | |
parent | c644ab480d2a764ee242cca14f96ea28a181bcad (diff) |
Merge "Resolve the helm templates"
Diffstat (limited to 'src/orchestrator/pkg/infra')
-rw-r--r-- | src/orchestrator/pkg/infra/db/mongo.go | 3 | ||||
-rw-r--r-- | src/orchestrator/pkg/infra/db/store.go | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/orchestrator/pkg/infra/db/mongo.go b/src/orchestrator/pkg/infra/db/mongo.go index a344aa1c..b33d6c65 100644 --- a/src/orchestrator/pkg/infra/db/mongo.go +++ b/src/orchestrator/pkg/infra/db/mongo.go @@ -49,7 +49,7 @@ type MongoCollection interface { opts ...*options.FindOptions) (*mongo.Cursor, error) UpdateOne(ctx context.Context, filter interface{}, update interface{}, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error) - CountDocuments(ctx context.Context, filter interface{}, + CountDocuments(ctx context.Context, filter interface{}, opts ...*options.CountOptions) (int64, error) } @@ -587,4 +587,3 @@ func (m *MongoStore) Remove(coll string, key Key) error { } return nil } - diff --git a/src/orchestrator/pkg/infra/db/store.go b/src/orchestrator/pkg/infra/db/store.go index e87722cd..9c6532f1 100644 --- a/src/orchestrator/pkg/infra/db/store.go +++ b/src/orchestrator/pkg/infra/db/store.go @@ -59,7 +59,7 @@ type Store interface { // Find the document(s) with key and get the tag values from the document(s) Find(coll string, key Key, tag string) ([][]byte, error) - // Removes the document(s) matching the key if no child reference in collection + // Removes the document(s) matching the key if no child reference in collection Remove(coll string, key Key) error // Remove all the document(s) matching the key |