diff options
author | Jordi Serra Torrens <jordi.serra-torrens@mongodb.com> | 2023-01-19 14:46:34 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-01-19 16:00:56 +0000 |
commit | 8c9d2a0169a1a15b633d806db2c673209d843b05 (patch) | |
tree | 41cc0b07e12c332f7af0d3ed93595e7a30834bd7 /buildscripts/linter | |
parent | ef120ac5552574fb9b84d36d842ead8519588c31 (diff) | |
download | mongo-8c9d2a0169a1a15b633d806db2c673209d843b05.tar.gz |
SERVER-69445 Implement the CollectionSnapshot(s) infrastructure to back CollectionPtr
Diffstat (limited to 'buildscripts/linter')
-rw-r--r-- | buildscripts/linter/simplecpplint.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/buildscripts/linter/simplecpplint.py b/buildscripts/linter/simplecpplint.py index 5ce6ad7541f..1cea1f59e92 100644 --- a/buildscripts/linter/simplecpplint.py +++ b/buildscripts/linter/simplecpplint.py @@ -298,7 +298,8 @@ class Linter: def _check_for_collection_sharding_runtime(self, linenum): line = self.clean_lines[linenum] if _RE_COLLECTION_SHARDING_RUNTIME.search( - line) and "/src/mongo/db/s/" not in self.file_name: + line + ) and "/src/mongo/db/s/" not in self.file_name and "_test.cpp" not in self.file_name: self._error( linenum, 'mongodb/collection_sharding_runtime', 'Illegal use of ' 'CollectionShardingRuntime outside of mongo/db/s/; use CollectionShardingState ' |