Foo::Foo() { connection = pool.acquire(); db = connection.database("my_database"); m_connection = db.collection("my_collection); } // << connection object destroyed here but member variable m_connection is still alive
或者,我保持集合活动的事实是否足以确保连接不会返回到池?