Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/datacollector/data_collector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#include <utility>
#include <vector>

#include "absl/strings/match.h"
#include "absl/strings/str_join.h"
#include "boost/algorithm/string/predicate.hpp"
#include "gflags/gflags.h"
#include "google/protobuf/util/message_differencer.h"

Expand Down Expand Up @@ -415,7 +415,7 @@ bool DataCollectorImpl::FetchBinlogUnlocked(const std::string& name, const std::
for (auto& p : fs::directory_iterator(binlog_dir)) {
if (fs::is_regular_file(p)) {
auto file_name = p.path().filename().string();
if (!boost::ends_with(file_name, ".log")) {
if (!absl::EndsWith(file_name, ".log")) {
continue;
}
auto src = binlog_path + file_name;
Expand Down
4 changes: 2 additions & 2 deletions src/tablet/file_sender.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
#include <thread> // NOLINT
#include <vector>

#include "absl/strings/match.h"
#include "base/file_util.h"
#include "base/glog_wrapper.h"
#include "boost/algorithm/string/predicate.hpp"
#include "common/timer.h"
#include "gflags/gflags.h"
#include "nameserver/system_table.h"
Expand Down Expand Up @@ -124,7 +124,7 @@ int FileSender::SendFile(const std::string& file_name, const std::string& full_p
}

int FileSender::SendFile(const std::string& file_name, const std::string& dir_name, const std::string& full_path) {
if (!boost::ends_with(full_path, file_name)) {
if (!absl::EndsWith(full_path, file_name)) {
PDLOG(WARNING, "invalid file[%s] path[%s]", file_name.c_str(), full_path.c_str());
return -1;
}
Expand Down
Loading