@@ -71,17 +71,18 @@ std::string GenericUpdate(const std::chrono::microseconds timestamp, const std::
71
71
}
72
72
73
73
template <>
74
- std::string GenericUpdate<new_ctfo ::Card, Persisted_CardUpdated>(const std::chrono::microseconds timestamp,
75
- const std::vector<std::string>& tsv) {
74
+ std::string GenericUpdate<CTFO ::Card, Persisted_CardUpdated>(const std::chrono::microseconds timestamp,
75
+ const std::vector<std::string>& tsv) {
76
76
assert (tsv.size () == 3u );
77
77
78
78
current::storage::Transaction<T_PERSISTED_VARIANT> transaction;
79
79
80
80
transaction.meta .timestamp = timestamp;
81
- transaction.mutations .emplace_back (Persisted_CardUpdated ());
81
+ Persisted_CardUpdated template_record;
82
+ transaction.mutations .emplace_back (template_record);
82
83
83
84
std::string json = JSON (transaction);
84
- std::string subjson = " {\" data\" :" + JSON (new_ctfo::Card () ) + " }" ;
85
+ std::string subjson = " {\" data\" :" + JSON (template_record. data ) + " }" ;
85
86
const size_t offset = json.find (subjson);
86
87
assert (offset != std::string::npos);
87
88
@@ -103,9 +104,9 @@ std::string GenericUpdate<new_ctfo::Card, Persisted_CardUpdated>(const std::chro
103
104
auto & data = Value<Persisted_CardUpdated>(result.mutations [0 ]).data ;
104
105
auto cid = data.cid ;
105
106
106
- static std::map<CID, size_t > ctfo_count_map;
107
- static std::map<CID, size_t > tfu_count_map;
108
- static std::map<CID, size_t > skip_count_map;
107
+ static std::map<CTFO:: CID, size_t > ctfo_count_map;
108
+ static std::map<CTFO:: CID, size_t > tfu_count_map;
109
+ static std::map<CTFO:: CID, size_t > skip_count_map;
109
110
110
111
size_t & ctfo_count = ctfo_count_map[cid];
111
112
size_t & tfu_count = tfu_count_map[cid];
0 commit comments