Add prefix to async operation id so it is easier to manage on cli.
This commit is contained in:
parent
fc72c078be
commit
2e6321a154
|
@ -28,7 +28,7 @@ std::map<OperationStatus, std::string> OperationStatusMap = {
|
||||||
AsyncRPCOperation::AsyncRPCOperation() : errorCode(0), errorMessage() {
|
AsyncRPCOperation::AsyncRPCOperation() : errorCode(0), errorMessage() {
|
||||||
// Set a unique reference for each operation
|
// Set a unique reference for each operation
|
||||||
boost::uuids::uuid uuid = uuidgen();
|
boost::uuids::uuid uuid = uuidgen();
|
||||||
std::string s = boost::uuids::to_string(uuid);
|
std::string s = "opid-" + boost::uuids::to_string(uuid);
|
||||||
setId(s);
|
setId(s);
|
||||||
|
|
||||||
setState(OperationStatus::READY);
|
setState(OperationStatus::READY);
|
||||||
|
|
Loading…
Reference in New Issue