src/buf/buf_mgr.cpp
bool BufferPool::ProbeBufferPool(const pid_t pid, PageDesc *&ph) {
    auto it = mapping_table.find(pid);
    if (it == mapping_table.end())
        return false;
    ph = it->second;
    ph->Pin();
    replacer.Touch(ph);
    return true;
}
// Test if page is in buffer pool. If so, pin it and return the page. Otherwise, do nothing.
// Return true if it is the case and return the page descriptor in `ph` as well.
// Return false if it is not and do not bring the page in.
Test if page is in buffer pool. If so, pin it and return the page. Otherwise, do nothing.
Return true if it is the case and return the page descriptor in `ph` as well.
Return false if it is not and do not bring the page in.
Test if page is in buffer pool . If so pin it and return the page . Otherwise do nothing . Return true if it is the case and return the page descriptor in ` ph ` as well . Return false if it is not and do not bring the page in .
bool BufferPool::ProbeBufferPool(const pid_t pid, PageDesc *&ph) {
    auto it = mapping_table.find(pid);
    if (it == mapping_table.end())
        return false;
    ph = it->second;
    ph->Pin();
    replacer.Touch(ph);
    return true;
}
bool BufferPool :: ProbeBufferPool ( const pid_t pid , PageDesc * & ph ) { auto it = mapping_table . find ( pid ) ; if ( it == mapping_table . end ( ) ) return false ; ph = it -> second ; ph -> Pin ( ) ; replacer . Touch ( ph ) ; return true ; }
Test if page is in buffer pool.
Test if page is in buffer pool .