MCPcopy Create free account
hub / github.com/apache/impala / MarkSessionInactive

Method MarkSessionInactive

be/src/service/impala-server.h:1523–1528  ·  view source on GitHub ↗

Decrement the session's reference counter and mark last_accessed_ms so that state expiration can proceed.

Source from the content-addressed store, hash-verified

1521 /// Decrement the session's reference counter and mark last_accessed_ms so that state
1522 /// expiration can proceed.
1523 inline void MarkSessionInactive(const std::shared_ptr<SessionState>& session) {
1524 std::lock_guard<std::mutex> l(session->lock);
1525 DCHECK_GT(session->ref_count, 0);
1526 --session->ref_count;
1527 session->last_accessed_ms = UnixMillis();
1528 }
1529
1530 /// Increment the session's reference counter.
1531 inline void MarkSessionActive(const std::shared_ptr<SessionState>& session) {

Callers 2

~ScopedSessionStateMethod · 0.80
RetryQueryFromThreadMethod · 0.80

Calls 1

UnixMillisFunction · 0.85

Tested by

no test coverage detected