@@ -32,7 +32,7 @@ limitations under the License.
3232namespace tensorflow {
3333namespace serving {
3434
35- Status CachingManager::Create (
35+ absl:: Status CachingManager::Create (
3636 Options options, std::unique_ptr<LoaderFactory> loader_factory,
3737 std::unique_ptr<CachingManager>* caching_manager) {
3838 // Set up basic manager options from the caching manager options.
@@ -53,7 +53,7 @@ Status CachingManager::Create(
5353
5454 caching_manager->reset (
5555 new CachingManager (std::move (loader_factory), std::move (basic_manager)));
56- return OkStatus ();
56+ return absl:: OkStatus ();
5757}
5858
5959CachingManager::CachingManager (std::unique_ptr<LoaderFactory> loader_factory,
@@ -63,7 +63,7 @@ CachingManager::CachingManager(std::unique_ptr<LoaderFactory> loader_factory,
6363
6464CachingManager::~CachingManager () {}
6565
66- Status CachingManager::GetUntypedServableHandle (
66+ absl:: Status CachingManager::GetUntypedServableHandle (
6767 const ServableRequest& request,
6868 std::unique_ptr<UntypedServableHandle>* const handle) {
6969 if (request.version ) {
@@ -78,11 +78,11 @@ Status CachingManager::GetUntypedServableHandle(
7878 handle);
7979}
8080
81- Status CachingManager::GetUntypedServableHandleForId (
81+ absl:: Status CachingManager::GetUntypedServableHandleForId (
8282 const ServableId& servable_id,
8383 std::unique_ptr<UntypedServableHandle>* handle) {
8484 // Check if the underlying basic manager can already serve this request.
85- const Status handle_status = basic_manager_->GetUntypedServableHandle (
85+ const absl:: Status handle_status = basic_manager_->GetUntypedServableHandle (
8686 ServableRequest::FromId (servable_id), handle);
8787
8888 // If the servable is already managed and loaded by the basic manager, serve
@@ -106,7 +106,7 @@ Status CachingManager::GetUntypedServableHandleForId(
106106 ServableRequest::FromId (servable_id), handle);
107107}
108108
109- Status CachingManager::LoadServable (
109+ absl:: Status CachingManager::LoadServable (
110110 ServableData<std::unique_ptr<Loader>> loader_data) {
111111 const ServableId servable_id = loader_data.id ();
112112
@@ -150,7 +150,7 @@ Status CachingManager::LoadServable(
150150 // the functionality of the event-bus and the servable state monitor are
151151 // automatically available in the caching-manager as well (via the basic
152152 // manager).
153- const Status manage_status =
153+ const absl:: Status manage_status =
154154 basic_manager_->ManageServable (std::move (loader_data));
155155 if (!manage_status.ok ()) {
156156 const string error_msg = strings::StrCat (
@@ -161,18 +161,19 @@ Status CachingManager::LoadServable(
161161 }
162162
163163 Notification load_done;
164- Status load_status;
165- basic_manager_->LoadServable (servable_id, [&](const Status& status) {
166- load_status = status;
167- load_done.Notify ();
168- });
164+ absl::Status load_status;
165+ basic_manager_->LoadServable (servable_id,
166+ [&](const absl::Status& status) {
167+ load_status = status;
168+ load_done.Notify ();
169+ });
169170 load_done.WaitForNotification ();
170171 TF_RETURN_IF_ERROR (load_status);
171172 }
172173 }
173174 servable_id_mu.reset ();
174175 MaybeEraseLoadMutexMapEntry (servable_id);
175- return OkStatus ();
176+ return absl:: OkStatus ();
176177}
177178
178179void CachingManager::MaybeEraseLoadMutexMapEntry (
0 commit comments