| 620 | } |
| 621 | |
| 622 | bool Connection::isSameDatabase(const PathName& dbName, ClumpletReader& dpb, const CryptHash& hash) const |
| 623 | { |
| 624 | if (m_dbName != dbName) |
| 625 | return false; |
| 626 | |
| 627 | // it is not exact comparison as clumplets may have same tags |
| 628 | // but in different order |
| 629 | |
| 630 | const FB_SIZE_T len = m_dpb.getCount(); |
| 631 | return (len == dpb.getBufferLength()) && (memcmp(m_dpb.begin(), dpb.getBuffer(), len) == 0) && |
| 632 | (m_cryptCallbackRedir == hash); |
| 633 | } |
| 634 | |
| 635 | |
| 636 | Transaction* Connection::createTransaction() |
no test coverage detected