src/BufferManager/BufferManager.cpp
void BufferManager::removeFile(string filename) {
    for (auto &block : blockBuffer) {
        if (block.filename == filename) {
            block.reset();
        }
    }
    if (remove(filename.c_str())) {
        cerr << "Fail to remove file: " << filename << endl;
    }
}
// remove the buffer node with file instance
remove the buffer node with file instance
remove the buffer node with file instance
void BufferManager::removeFile(string filename) {
    for (auto &block : blockBuffer) {
        if (block.filename == filename) {
            block.reset();
        }
    }
    if (remove(filename.c_str())) {
        cerr << "Fail to remove file: " << filename << endl;
    }
}
void BufferManager :: removeFile ( string filename ) { for ( auto & block : blockBuffer ) { if ( block . filename == filename ) { block . reset ( ) ; } } if ( remove ( filename . c_str ( ) ) ) { cerr << " " << filename << endl ; } }
remove the buffer node with file instance
remove the buffer node with file instance