Skip to content

Commit 2259392

Browse files
committed
Updated comments based on PR feedback
1 parent bbe2b1d commit 2259392

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

DataFormats/Provenance/test/productResolverIndexHelper_t.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/*
2-
* productResolverIndexHelper_t.cppunit.cc
3-
*/
41
#define CATCH_CONFIG_MAIN
52
#include <catch.hpp>
63

@@ -73,7 +70,7 @@ TEST_CASE("ProductResolverIndexHelper", "[ProductResolverIndexHelper]") {
7370
REQUIRE(indexWithProcess < 2);
7471
REQUIRE(indexEmptyProcess != indexWithProcess);
7572

76-
//wit only one entry, all should resolve to the one with process name
73+
//with only one entry, all should resolve to the one with process name
7774
REQUIRE(helper.index(PRODUCT_TYPE, typeID_ProductID, "labelA", "instanceA") == indexWithProcess);
7875
REQUIRE(helper.index(PRODUCT_TYPE, typeID_ProductID, "labelA", "instanceA", "") == indexWithProcess);
7976
REQUIRE(helper.index(PRODUCT_TYPE, typeID_ProductID, "labelA", "instanceA", 0) == indexWithProcess);

FWCore/Framework/src/ProductResolvers.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,6 @@ namespace edm {
10691069
return false;
10701070
}
10711071

1072-
//CDJ this is the function to change
10731072
void NoProcessProductResolver::tryPrefetchResolverAsync(unsigned int iProcessingIndex,
10741073
Principal const& principal,
10751074
bool skipCurrentProcess,
@@ -1194,6 +1193,8 @@ namespace edm {
11941193
bool skipCurrentProcess,
11951194
SharedResourcesAcquirer* sra,
11961195
ModuleCallingContext const* mcc) const {
1196+
//In future changes this class will be removed. Although the class is still being instantiated, it should never be called.
1197+
// For now the assert is here to catch any missed cases.
11971198
assert(false);
11981199
//NOTE: Have to lookup the other ProductResolver each time rather than cache
11991200
// it's pointer since it appears the pointer can change at some later stage
@@ -1207,6 +1208,8 @@ namespace edm {
12071208
ServiceToken const& token,
12081209
SharedResourcesAcquirer* sra,
12091210
ModuleCallingContext const* mcc) const noexcept {
1211+
//In future changes this class will be removed. Although the class is still being instantiated, it should never be called.
1212+
// For now the assert is here to catch any missed cases.
12101213
assert(false);
12111214
principal.getProductResolverByIndex(realResolverIndex_)
12121215
->prefetchAsync(waitTask, principal, skipCurrentProcess, token, sra, mcc);

0 commit comments

Comments
 (0)