From 2e6321a154c0b0ff32c442130c672c65d7a79c98 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 19 Aug 2016 12:23:46 -0700 Subject: [PATCH] Add prefix to async operation id so it is easier to manage on cli. --- src/asyncrpcoperation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asyncrpcoperation.cpp b/src/asyncrpcoperation.cpp index debe2adc9..56284ab0b 100644 --- a/src/asyncrpcoperation.cpp +++ b/src/asyncrpcoperation.cpp @@ -28,7 +28,7 @@ std::map 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);