Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
danovaro committed Aug 30, 2023
1 parent a4bbbec commit b5d145f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/fdb5/toc/TocHandler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1235,38 +1235,29 @@ void TocHandler::enumerateMasked(std::set<std::pair<eckit::URI, Offset>>& metada

for (const auto& entry : maskedEntries_) {

std::cout << "enumerateMasked " << entry.first << " " << entry.second << " " << std::endl;

ASSERT(entry.first.path().size() > 0);
eckit::PathName absPath;
std::cout << "enumerateMasked - absPath 0 " << absPath << std::endl;
if (entry.first.path()[0] == '/') {
absPath = entry.first;
std::cout << "enumerateMasked - absPath 1 " << absPath << std::endl;

if (!absPath.exists()) {
absPath = currentDirectory() / entry.first.baseName();
}
} else {
absPath = currentDirectory() / entry.first;
}
std::cout << "enumerateMasked - absPath " << absPath << std::endl;

if (absPath.exists()) {
eckit::URI uri("toc", absPath);
std::cout << "enumerateMasked insert " << uri << std::endl;
metadata.insert(std::make_pair(uri, entry.second));

// If this is a subtoc, then enumerate its contained indexes and data!

if (uri.path().baseName().asString().substr(0, 4) == "toc.") {
TocHandler h(absPath, remapKey_);

h.enumerateMasked(metadata, data);

std::vector<Index> indexes = h.loadIndexes();
for (const auto& i : indexes) {
std::cout << "enumerateMasked insert " << i.location().uri() << std::endl;
metadata.insert(std::make_pair<eckit::URI, Offset>(i.location().uri(), 0));
for (const auto& dataPath : i.dataPaths()) {
data.insert(dataPath);
Expand Down

0 comments on commit b5d145f

Please sign in to comment.