Add prefix to async operation id so it is easier to manage on cli.

This commit is contained in:
Simon
2016-08-19 12:23:46 -07:00
parent fc72c078be
commit 2e6321a154

View File

@@ -28,7 +28,7 @@ std::map<OperationStatus, std::string> OperationStatusMap = {
AsyncRPCOperation::AsyncRPCOperation() : errorCode(0), errorMessage() {
// Set a unique reference for each operation
boost::uuids::uuid uuid = uuidgen();
std::string s = boost::uuids::to_string(uuid);
std::string s = "opid-" + boost::uuids::to_string(uuid);
setId(s);
setState(OperationStatus::READY);