diff options
Diffstat (limited to 'src/mongo/s/catalog/sharding_catalog_client.h')
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_client.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/mongo/s/catalog/sharding_catalog_client.h b/src/mongo/s/catalog/sharding_catalog_client.h index febbf82fe06..d11bedac634 100644 --- a/src/mongo/s/catalog/sharding_catalog_client.h +++ b/src/mongo/s/catalog/sharding_catalog_client.h @@ -335,8 +335,8 @@ public: const WriteConcernOptions& writeConcern) = 0; /** - * Updates a single document in the specified namespace on the config server. The document must - * have an _id index. Must only be used for updates to the 'config' database. + * Updates a single document in the specified namespace on the config server. Must only be used + * for updates to the 'config' database. * * This method retries the operation on NotMaster or network errors, so it should only be used * with modifications which are idempotent. @@ -356,6 +356,19 @@ public: const WriteConcernOptions& writeConcern) = 0; /** + * Updates multiple documents in the specified namespace on the config server. Must only be used + * for updates to the 'config' database. + * + * Read the comment for 'updateConfigDocument' for additional information. + */ + virtual StatusWith<bool> updateConfigDocuments(OperationContext* opCtx, + const NamespaceString& nss, + const BSONObj& query, + const BSONObj& update, + bool upsert, + const WriteConcernOptions& writeConcern) = 0; + + /** * Removes documents matching a particular query predicate from the specified namespace on the * config server. Must only be used for deletions from the 'config' database. * |