diff --git a/buildscripts/errorcodes.py b/buildscripts/errorcodes.py index 0aabaac16af..79e883ebad5 100755 --- a/buildscripts/errorcodes.py +++ b/buildscripts/errorcodes.py @@ -43,7 +43,7 @@ _CODE_PATTERNS = [ r"(?:StatusOK)?" r"(?:WithContext)?" r"\s*\(", - r"MONGO_UNREACHABLE_TASSERT\(", + r"MONGO_UN(?:REACHABLE|IMPLEMENTED)_TASSERT\(", # DBException and AssertionException constructors r"(?:DB|Assertion)Exception\s*[({]", # Calls to all LOGV2* variants diff --git a/buildscripts/tests/data/errorcodes/regex_matching/regex_matching.cpp b/buildscripts/tests/data/errorcodes/regex_matching/regex_matching.cpp index 24b0b42fed3..71add89f2a9 100644 --- a/buildscripts/tests/data/errorcodes/regex_matching/regex_matching.cpp +++ b/buildscripts/tests/data/errorcodes/regex_matching/regex_matching.cpp @@ -33,3 +33,4 @@ iasserted(28, "words"); iassertNoTrace(29, "words"); iassertedNoTrace(30, "words"); MONGO_UNREACHABLE_TASSERT(31); +MONGO_UNIMPLEMENTED_TASSERT(32); diff --git a/buildscripts/tests/test_errorcodes.py b/buildscripts/tests/test_errorcodes.py index 5f640b73d98..22aefd79382 100644 --- a/buildscripts/tests/test_errorcodes.py +++ b/buildscripts/tests/test_errorcodes.py @@ -26,7 +26,7 @@ class TestErrorcodes(unittest.TestCase): captured_error_codes.append(code) errorcodes.parse_source_files(accumulate_files, TESTDATA_DIR + 'regex_matching/') - self.assertEqual(31, len(captured_error_codes)) + self.assertEqual(32, len(captured_error_codes)) def test_dup_checking(self): """Test dup checking.""" diff --git a/src/mongo/db/catalog/virtual_collection_impl.h b/src/mongo/db/catalog/virtual_collection_impl.h index 57097d8db4c..1e2485bb5ad 100644 --- a/src/mongo/db/catalog/virtual_collection_impl.h +++ b/src/mongo/db/catalog/virtual_collection_impl.h @@ -558,7 +558,7 @@ public: private: void unimplementedTasserted() const { - MONGO_UNIMPLEMENTED_TASSERT(6968504); + MONGO_UNIMPLEMENTED_TASSERT(6968506); } struct SharedState {