Remove nocommit comment

This commit is contained in:
jeremy 2022-11-17 14:33:08 +01:00
parent fe03f5b206
commit 3840c14846

View File

@ -509,8 +509,7 @@ msgs::ReadResponses ShardRsm::HandleRead(msgs::ExpandOneRequest &&req) {
if (!req.order_by.empty()) { if (!req.order_by.empty()) {
// Can we do differently to avoid this? We need OrderByElements but currently it returns vector<Element>, so this // Can we do differently to avoid this? We need OrderByElements but currently it returns vector<Element>, so this
// workaround is here to avoid more duplication later // workaround is here to avoid more duplication later
auto local_sorted_vertices = OrderByVertices( auto local_sorted_vertices = OrderByVertices(acc, dba, vertex_accessors, req.order_by);
acc, dba, vertex_accessors, req.order_by); // #NoCommit see whether we can avoid the extra std::transform
vertex_accessors.clear(); vertex_accessors.clear();
std::transform(local_sorted_vertices.begin(), local_sorted_vertices.end(), std::back_inserter(vertex_accessors), std::transform(local_sorted_vertices.begin(), local_sorted_vertices.end(), std::back_inserter(vertex_accessors),
[](auto &vertex) { return vertex.object_acc; }); [](auto &vertex) { return vertex.object_acc; });