MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / forgetArrowTableID

Function forgetArrowTableID

src/c_api/connection.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38static void forgetArrowTableID(Connection* connection, const char* tableName) {
39 std::lock_guard<std::mutex> lock(arrowTableIDMutex);
40 if (!arrowTableIDs.contains(connection)) {
41 return;
42 }
43 arrowTableIDs.at(connection).erase(tableName);
44 if (arrowTableIDs.at(connection).empty()) {
45 arrowTableIDs.erase(connection);
46 }
47}
48
49static void forgetArrowTableIDs(Connection* connection) {
50 std::lock_guard<std::mutex> lock(arrowTableIDMutex);

Callers 1

Calls 3

eraseMethod · 0.80
containsMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected