6 namespace persistency {
21 s.transaction().start(
true);
23 std::sort(
m_keys.begin(),
m_keys.end(), std::less<unsigned long long>());
27 for (
size_t i = 0;
i <
m_keys.size(); ++
i) {
30 if (
p != keyIovs.
end()) {
32 if (!
s.fetchPayloadData((*p).payloadId,
item.first,
item.second.first,
item.second.second))
37 s.transaction().commit();
41 std::pair<std::string, std::pair<cond::Binary, cond::Binary> >
item;
49 s.transaction().start(
true);
52 if (
p != keyIovs.
end()) {
53 if (!
s.fetchPayloadData((*p).payloadId,
item.first,
item.second.first,
item.second.second))
56 throwException(
"Payload for key " + std::to_string(
key) +
" has not been found.",
"KeyList::loadFromDB");
58 s.transaction().commit();