diff options
author | Sergi Mateo Bellido <sergi.mateo-bellido@mongodb.com> | 2022-03-28 05:52:22 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-03-28 06:34:16 +0000 |
commit | df35160198cec8f1ab2f66f9c286e0ac377146c3 (patch) | |
tree | bc25c4ce4ce173e76db5e354ffcf2d61bd8b28e6 | |
parent | f762f466122819888f3793d4bd1b90cc9d8fcd25 (diff) | |
download | mongo-df35160198cec8f1ab2f66f9c286e0ac377146c3.tar.gz |
SERVER-64930 Disabling some tasserts
-rw-r--r-- | src/mongo/util/invalidating_lru_cache.h | 15 | ||||
-rw-r--r-- | src/mongo/util/read_through_cache.h | 7 |
2 files changed, 0 insertions, 22 deletions
diff --git a/src/mongo/util/invalidating_lru_cache.h b/src/mongo/util/invalidating_lru_cache.h index d31445ef41e..fda3ffaeb4f 100644 --- a/src/mongo/util/invalidating_lru_cache.h +++ b/src/mongo/util/invalidating_lru_cache.h @@ -320,13 +320,6 @@ public: LockGuardWithPostUnlockDestructor guard(_mutex); Time currentTime, currentTimeInStore; _invalidate(&guard, key, _cache.find(key), ¤tTime, ¤tTimeInStore); - if constexpr (!std::is_same_v<Time, CacheNotCausallyConsistent>) { - tassert(6324102, - str::stream() << "Time monotonicity violation: new lookup time " - << time.toString() << " which is less than the current time " - << currentTime.toString() << ".", - currentTime <= time); - } if (auto evicted = _cache.add(key, @@ -379,14 +372,6 @@ public: Time currentTime, currentTimeInStore; _invalidate(&guard, key, _cache.find(key), ¤tTime, ¤tTimeInStore); - if constexpr (!std::is_same_v<Time, CacheNotCausallyConsistent>) { - tassert(6324101, - str::stream() << "Time monotonicity violation: new lookup time " - << time.toString() << " which is less than the current time " - << currentTime.toString() << ".", - currentTime <= time); - } - if (auto evicted = _cache.add(key, std::make_shared<StoredValue>(this, diff --git a/src/mongo/util/read_through_cache.h b/src/mongo/util/read_through_cache.h index abdf12fbf6b..c74e3174b45 100644 --- a/src/mongo/util/read_through_cache.h +++ b/src/mongo/util/read_through_cache.h @@ -543,14 +543,7 @@ private: // 'invalidate'. Place the value on the cache and return the necessary promises to // signal (those which are waiting for time < time at the store). auto& result = sw.getValue(); - const auto timeOfOldestPromise = inProgressLookup.getTimeOldestPromise(ul); auto promisesToSet = inProgressLookup.getPromisesLessThanOrEqualToTime(ul, result.t); - tassert(6324100, - str::stream() << "Time monotonicity violation: lookup time " - << result.t.toString() - << " which is less than the earliest expected timeInStore " - << timeOfOldestPromise.toString() << ".", - !promisesToSet.empty()); auto valueHandleToSet = [&] { if (result.v) { |