Skip to content

Commit

Permalink
Merge branch 'hotfix/1.24.5' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
danovaro committed Nov 7, 2023
2 parents 7b27060 + 821d869 commit 5e6e7a1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.24.4
1.24.5
6 changes: 5 additions & 1 deletion src/eckit/filesystem/URI.cc
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,11 @@ std::string URI::authority() const {
}

void URI::query(const std::string& attribute, const std::string& value) {
queryValues_[attribute] = encode(value);
if (value.empty()) {
queryValues_.erase(attribute);
} else {
queryValues_[attribute] = encode(value);
}
}

const std::string URI::query(const std::string& attribute) const {
Expand Down
15 changes: 7 additions & 8 deletions src/eckit/io/PooledFile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,9 @@ class PoolFileEntry {

void remove(const PooledFile* file) {
auto s = statuses_.find(file);
ASSERT(s != statuses_.end());

statuses_.erase(s);

if (s != statuses_.end()) {
statuses_.erase(s);
}
if (statuses_.size() == 0) {
doClose();
pool_.erase(name_);
Expand Down Expand Up @@ -114,10 +113,10 @@ class PoolFileEntry {

void close(const PooledFile* file) {
auto s = statuses_.find(file);
ASSERT(s != statuses_.end());

ASSERT(s->second.opened_);
s->second.opened_ = false;
if (s != statuses_.end()) {
ASSERT(s->second.opened_);
s->second.opened_ = false;
}
}

int fileno(const PooledFile* file) const {
Expand Down
2 changes: 2 additions & 0 deletions src/eckit/net/Endpoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ class Endpoint {
const std::string& host() const { return host_; }
int port() const { return port_; }

std::string hostport() const { return host_+":"+std::to_string(port_); }

bool operator==(const net::Endpoint& other);

void print(std::ostream& os) const;
Expand Down

0 comments on commit 5e6e7a1

Please sign in to comment.