#237 createBulk(...) data param as rvalue ref
This commit is contained in:
parent
f56e9a614e
commit
028b32af10
2 changed files with 3 additions and 3 deletions
|
|
@ -145,13 +145,13 @@ bool handleBulkResponse(long http_code, const std::string& CurlReadBuffer)
|
|||
return true;
|
||||
}
|
||||
|
||||
const std::vector<std::string> createBulk(const fc::mutable_variant_object& bulk_header, const std::string& data)
|
||||
const std::vector<std::string> createBulk(const fc::mutable_variant_object& bulk_header, const std::string&& data)
|
||||
{
|
||||
std::vector<std::string> bulk;
|
||||
fc::mutable_variant_object final_bulk_header;
|
||||
final_bulk_header["index"] = bulk_header;
|
||||
bulk.push_back(fc::json::to_string(final_bulk_header));
|
||||
bulk.push_back(data);
|
||||
bulk.emplace_back(std::move(data));
|
||||
|
||||
return bulk;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ namespace graphene { namespace utilities {
|
|||
};
|
||||
|
||||
bool SendBulk(ES& es);
|
||||
const std::vector<std::string> createBulk(const fc::mutable_variant_object& bulk_header, const std::string& data);
|
||||
const std::vector<std::string> createBulk(const fc::mutable_variant_object& bulk_header, const std::string&& data);
|
||||
bool checkES(ES& es);
|
||||
const std::string getESVersion(ES& es);
|
||||
void checkESVersion7OrAbove(ES& es, bool& result) noexcept;
|
||||
|
|
|
|||
Loading…
Reference in a new issue