-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'huangminghuang/block_log' into GH-592-ship-crash-split-…
…ship-log # Conflicts: # libraries/chain/include/eosio/chain/log_catalog.hpp # libraries/chain/include/eosio/chain/log_data_base.hpp # libraries/chain/include/eosio/chain/log_index.hpp
- Loading branch information
Showing
45 changed files
with
2,358 additions
and
1,708 deletions.
There are no files selected for viewing
Submodule appbase
updated
9 files
+4 −3 | CMakeLists.txt | |
+8 −1 | README.md | |
+98 −25 | application.cpp | |
+12 −6 | examples/main.cpp | |
+56 −17 | include/appbase/application.hpp | |
+7 −1 | include/appbase/execution_priority_queue.hpp | |
+1 −1 | include/appbase/plugin.hpp | |
+2 −0 | tests/CMakeLists.txt | |
+390 −0 | tests/basic_test.cpp |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#pragma once | ||
#include <boost/filesystem/path.hpp> | ||
#include <variant> | ||
|
||
namespace eosio { namespace chain { | ||
|
||
namespace bfs = boost::filesystem; | ||
|
||
struct basic_blocklog_config { | ||
bool fix_irreversible_blocks = false; | ||
}; | ||
|
||
struct empty_blocklog_config {}; | ||
|
||
struct partitioned_blocklog_config { | ||
bfs::path retained_dir; | ||
bfs::path archive_dir; | ||
uint32_t stride = UINT32_MAX; | ||
uint32_t max_retained_files = UINT32_MAX; | ||
bool fix_irreversible_blocks = false; | ||
}; | ||
|
||
struct prune_blocklog_config { | ||
uint32_t prune_blocks; // number of blocks to prune to when doing a prune | ||
size_t prune_threshold = | ||
4 * 1024 * 1024; //(approximately) how many bytes need to be added before a prune is performed | ||
std::optional<size_t> | ||
vacuum_on_close; // when set, a vacuum is performed on dtor if log contains less than this many live bytes | ||
}; | ||
|
||
using block_log_config = | ||
std::variant<basic_blocklog_config, empty_blocklog_config, partitioned_blocklog_config, prune_blocklog_config>; | ||
|
||
}} // namespace eosio::chain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.