2323#include < set>
2424#include < vector>
2525
26+ #include " absl/strings/match.h"
2627#include " absl/strings/numbers.h"
2728#include " absl/strings/str_cat.h"
2829#include " absl/strings/str_join.h"
@@ -1098,7 +1099,7 @@ void NameServerImpl::UpdateTablets(const std::vector<std::string>& endpoints) {
10981099 std::string nearline_tablet_endpoint;
10991100 for (const auto & endpoint : endpoints) {
11001101 std::string cur_endpoint = endpoint;
1101- if (boost::starts_with (cur_endpoint, ::openmldb::base::NEARLINE_PREFIX)) {
1102+ if (absl::StartsWith (cur_endpoint, ::openmldb::base::NEARLINE_PREFIX)) {
11021103 nearline_tablet_endpoint = endpoint.substr (::openmldb::base::NEARLINE_PREFIX.size ());
11031104 cur_endpoint = nearline_tablet_endpoint;
11041105 } else {
@@ -1263,7 +1264,7 @@ void NameServerImpl::OnTabletOnline(const std::string& endpoint) {
12631264 offline_endpoint_map_.erase (iter);
12641265 return ;
12651266 }
1266- if (!boost::starts_with (value, " startup_" )) {
1267+ if (!absl::StartsWith (value, " startup_" )) {
12671268 uint64_t cur_time = ::baidu::common::timer::get_micros () / 1000 ;
12681269 if (cur_time < iter->second + FLAGS_tablet_heartbeat_timeout) {
12691270 PDLOG (INFO,
@@ -1275,7 +1276,7 @@ void NameServerImpl::OnTabletOnline(const std::string& endpoint) {
12751276 }
12761277 }
12771278 }
1278- if (boost::starts_with (value, " startup_" )) {
1279+ if (absl::StartsWith (value, " startup_" )) {
12791280 PDLOG (INFO, " endpoint %s is startup, exe tablet offline" , endpoint.c_str ());
12801281 OnTabletOffline (endpoint, true );
12811282 }
0 commit comments