Switch to unified view
a/src/rcldb/rcldb.cpp | b/src/rcldb/rcldb.cpp | ||
---|---|---|---|
... |
... |
||
1682 | } |
1682 | } |
1683 | } |
1683 | } |
1684 | #endif |
1684 | #endif |
1685 | 1685 | ||
1686 | // Flush when idxflushmbs is reached |
1686 | // Flush when idxflushmbs is reached |
1687 | bool Db::maybeflush(off_t moretext)
|
1687 | bool Db::maybeflush(int64_t moretext)
|
1688 | { |
1688 | { |
1689 | if (m_flushMb > 0) { |
1689 | if (m_flushMb > 0) { |
1690 | m_curtxtsz += moretext; |
1690 | m_curtxtsz += moretext; |
1691 | if ((m_curtxtsz - m_flushtxtsz) / MB >= m_flushMb) { |
1691 | if ((m_curtxtsz - m_flushtxtsz) / MB >= m_flushMb) { |
1692 | LOGDEB("Db::add/delete: txt size >= " << (m_flushMb) << " Mb, flushing\n" ); |
1692 | LOGDEB("Db::add/delete: txt size >= " << (m_flushMb) << " Mb, flushing\n" ); |