@@ -32,7 +32,7 @@ limitations under the License.
32
32
namespace tensorflow {
33
33
namespace serving {
34
34
35
- Status CachingManager::Create (
35
+ absl:: Status CachingManager::Create (
36
36
Options options, std::unique_ptr<LoaderFactory> loader_factory,
37
37
std::unique_ptr<CachingManager>* caching_manager) {
38
38
// Set up basic manager options from the caching manager options.
@@ -53,7 +53,7 @@ Status CachingManager::Create(
53
53
54
54
caching_manager->reset (
55
55
new CachingManager (std::move (loader_factory), std::move (basic_manager)));
56
- return OkStatus ();
56
+ return absl:: OkStatus ();
57
57
}
58
58
59
59
CachingManager::CachingManager (std::unique_ptr<LoaderFactory> loader_factory,
@@ -63,7 +63,7 @@ CachingManager::CachingManager(std::unique_ptr<LoaderFactory> loader_factory,
63
63
64
64
CachingManager::~CachingManager () {}
65
65
66
- Status CachingManager::GetUntypedServableHandle (
66
+ absl:: Status CachingManager::GetUntypedServableHandle (
67
67
const ServableRequest& request,
68
68
std::unique_ptr<UntypedServableHandle>* const handle) {
69
69
if (request.version ) {
@@ -78,11 +78,11 @@ Status CachingManager::GetUntypedServableHandle(
78
78
handle);
79
79
}
80
80
81
- Status CachingManager::GetUntypedServableHandleForId (
81
+ absl:: Status CachingManager::GetUntypedServableHandleForId (
82
82
const ServableId& servable_id,
83
83
std::unique_ptr<UntypedServableHandle>* handle) {
84
84
// 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 (
86
86
ServableRequest::FromId (servable_id), handle);
87
87
88
88
// If the servable is already managed and loaded by the basic manager, serve
@@ -106,7 +106,7 @@ Status CachingManager::GetUntypedServableHandleForId(
106
106
ServableRequest::FromId (servable_id), handle);
107
107
}
108
108
109
- Status CachingManager::LoadServable (
109
+ absl:: Status CachingManager::LoadServable (
110
110
ServableData<std::unique_ptr<Loader>> loader_data) {
111
111
const ServableId servable_id = loader_data.id ();
112
112
@@ -150,7 +150,7 @@ Status CachingManager::LoadServable(
150
150
// the functionality of the event-bus and the servable state monitor are
151
151
// automatically available in the caching-manager as well (via the basic
152
152
// manager).
153
- const Status manage_status =
153
+ const absl:: Status manage_status =
154
154
basic_manager_->ManageServable (std::move (loader_data));
155
155
if (!manage_status.ok ()) {
156
156
const string error_msg = strings::StrCat (
@@ -161,18 +161,19 @@ Status CachingManager::LoadServable(
161
161
}
162
162
163
163
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
+ });
169
170
load_done.WaitForNotification ();
170
171
TF_RETURN_IF_ERROR (load_status);
171
172
}
172
173
}
173
174
servable_id_mu.reset ();
174
175
MaybeEraseLoadMutexMapEntry (servable_id);
175
- return OkStatus ();
176
+ return absl:: OkStatus ();
176
177
}
177
178
178
179
void CachingManager::MaybeEraseLoadMutexMapEntry (
0 commit comments