Skip to content

Commit

Permalink
steemit#3312: Default revision to -1, add call to close() before call…
Browse files Browse the repository at this point in the history
…ing wipe()
  • Loading branch information
sgerbino committed May 17, 2019
1 parent 71b37e7 commit 02ad845
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/mira/include/mira/boost_adapter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class boost_multi_index_adapter : public boost::multi_index_container< Value, In
{
private:
typedef typename Value::id_type id_type;
int64_t _revision = 0;
int64_t _revision = -1;
id_type _next_id = 0;

public:
Expand Down
1 change: 1 addition & 0 deletions libraries/mira/include/mira/index_adapter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ struct multi_index_adapter
break;
}
}
close();
wipe( p );

_index = std::move( new_index );
Expand Down

0 comments on commit 02ad845

Please sign in to comment.