| 2294 | } |
| 2295 | |
| 2296 | Status MasterSession::ReleaseCallable(const ReleaseCallableRequest& req, |
| 2297 | ReleaseCallableResponse* resp) { |
| 2298 | UpdateLastAccessTime(); |
| 2299 | ReffedClientGraph* to_unref = nullptr; |
| 2300 | { |
| 2301 | mutex_lock l(mu_); |
| 2302 | auto iter = callables_.find(req.handle()); |
| 2303 | if (iter != callables_.end()) { |
| 2304 | to_unref = iter->second; |
| 2305 | callables_.erase(iter); |
| 2306 | } |
| 2307 | } |
| 2308 | if (to_unref != nullptr) { |
| 2309 | to_unref->Unref(); |
| 2310 | } |
| 2311 | return Status::OK(); |
| 2312 | } |
| 2313 | |
| 2314 | Status MasterSession::Close() { |
| 2315 | { |