Skip to content

Commit

Permalink
node: fix Windows build after ROTxn/RWTxn refactoring (#1329)
Browse files Browse the repository at this point in the history
  • Loading branch information
canepat committed Jul 14, 2023
1 parent 3b4a35c commit 1279043
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion silkworm/node/db/mdbx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ PooledCursor::PooledCursor() {
}
}

PooledCursor::PooledCursor(RWTxn& txn, ::mdbx::map_handle map) {
PooledCursor::PooledCursor(ROTxn& txn, ::mdbx::map_handle map) {
handle_ = handles_pool_.acquire();
if (!handle_) {
handle_ = ::mdbx_cursor_create(nullptr);
Expand Down
3 changes: 2 additions & 1 deletion silkworm/node/db/mdbx.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,9 @@ size_t max_value_size_for_leaf_page(const ::mdbx::txn& txn, size_t key_size);
class PooledCursor : public RWCursorDupSort, protected ::mdbx::cursor {
public:
explicit PooledCursor();
explicit PooledCursor(RWTxn& txn, ::mdbx::map_handle map);
explicit PooledCursor(ROTxn& txn, ::mdbx::map_handle map);
explicit PooledCursor(::mdbx::txn& txn, const MapConfig& config);
explicit PooledCursor(ROTxn& txn, const MapConfig& config) : PooledCursor(*txn, config) {}
~PooledCursor() override;

PooledCursor(PooledCursor&& other) noexcept;
Expand Down

0 comments on commit 1279043

Please sign in to comment.