Repository: mesos Updated Branches: refs/heads/master a561e68bb -> 10b4f708f
Differentiate between slave and offer ids Review: Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/10b4f708 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/10b4f708 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/10b4f708 Branch: refs/heads/master Commit: 10b4f708fe6c95109d4a80ebbaf90c242af2453e Parents: a561e68 Author: Dominic Hamon <[email protected]> Authored: Wed Oct 8 14:51:29 2014 -0700 Committer: Dominic Hamon <[email protected]> Committed: Wed Oct 22 14:26:26 2014 -0700 ---------------------------------------------------------------------- src/master/master.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/10b4f708/src/master/master.cpp ---------------------------------------------------------------------- diff --git a/src/master/master.cpp b/src/master/master.cpp index e70cdbf..95589b8 100644 --- a/src/master/master.cpp +++ b/src/master/master.cpp @@ -4787,7 +4787,7 @@ FrameworkID Master::newFrameworkId() OfferID Master::newOfferId() { OfferID offerId; - offerId.set_value(info_.id() + "-" + stringify(nextOfferId++)); + offerId.set_value(info_.id() + "-O" + stringify(nextOfferId++)); return offerId; } @@ -4795,7 +4795,7 @@ OfferID Master::newOfferId() SlaveID Master::newSlaveId() { SlaveID slaveId; - slaveId.set_value(info_.id() + "-" + stringify(nextSlaveId++)); + slaveId.set_value(info_.id() + "-S" + stringify(nextSlaveId++)); return slaveId; }
