MCPcopy Create free account
hub / github.com/apache/arrow / CloseSession

Method CloseSession

cpp/src/arrow/flight/sql/server_session_middleware.cc:194–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194Status ServerSessionMiddlewareFactory::CloseSession(std::string id) {
195 const std::lock_guard<std::shared_mutex> l(session_store_lock_);
196 if (!session_store_.erase(id)) {
197 return Status::KeyError("Invalid or nonexistent session cannot be closed.");
198 }
199 return Status::OK();
200}
201
202std::shared_ptr<ServerMiddlewareFactory> MakeServerSessionMiddlewareFactory(
203 std::function<std::string()> id_gen) {

Callers 1

CloseSessionMethod · 0.45

Calls 2

KeyErrorFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected