added IcebergStateMapper to determine exact sequence of iceberg state per event id
This commit is contained in:
1 parent
25e52df136
commit
cbf444d5ed
13 files changed
+281
-148
No files matched your search
@@ -35,6 +35,7 @@
|
||||
#include "server/sparkd/cmds/spartan/util/sql/sql_utils.h"
|
||||
#include <Pcap++/PcapFileDevice.h>
|
||||
#include <boost/algorithm/string/predicate.hpp>
|
||||
#include <boost/container/flat_map.hpp>
|
||||
#include <fmt/format.h>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
@@ -47,6 +48,8 @@ namespace cmd {
|
||||
#define ERROR(...) LOG(OrderMan, Error, __VA_ARGS__)
|
||||
|
||||
using namespace spartan::mdp3;
|
||||
template<class K, class V>
|
||||
using flat_map = boost::container::flat_map<K, V>;
|
||||
|
||||
auto drop_extensions = [](auto const &str) {
|
||||
size_t lastindex = str.find_last_of(".");
|
||||
@@ -334,9 +337,9 @@ std::map<std::string, std::function<int(std::vector<std::string> const &)>>
|
||||
}},
|
||||
{"validate_fifo",
|
||||
[](auto const &args) {
|
||||
return run(args[1],
|
||||
MatcherValidationObserver(
|
||||
iceberg_file_cache::find_icebergs(args[1])));
|
||||
flat_map<MDP3OrderKey, IcebergStates> ibs;
|
||||
iceberg_file_cache::find_icebergs(args[1], ibs);
|
||||
return run(args[1], MatcherValidationObserver(ibs));
|
||||
}},
|
||||
{"load_sim_input",
|
||||
[](auto const &args) { return load_sim_input(args[1]); }},
|
||||
|
||||
Reference in new issue
Block a user