MCPcopy Create free account
hub / github.com/apache/mesos / equal

Function equal

src/slave/compatibility.cpp:35–51  ·  view source on GitHub ↗

TODO(bevers): Compare the SlaveInfo fields individually, in order to be able to generate better error messages.

Source from the content-addressed store, hash-verified

33// TODO(bevers): Compare the SlaveInfo fields individually, in order to be
34// able to generate better error messages.
35Try<Nothing> equal(
36 const SlaveInfo& previous,
37 const SlaveInfo& current)
38{
39 if (previous == current) {
40 return Nothing();
41 }
42
43 return Error(strings::join(
44 "\n",
45 "Incompatible agent info detected. ",
46 "\n------------------------------------------------------------",
47 "Old agent info:\n" + stringify(previous),
48 "\n------------------------------------------------------------",
49 "New agent info:\n" + stringify(current),
50 "\n------------------------------------------------------------"));
51}
52
53
54Try<Nothing> additive(

Callers 9

TEST_FFunction · 0.85
operator==Function · 0.85
startsWithFunction · 0.85
endsWithFunction · 0.85
endsWidthFunction · 0.85
TESTFunction · 0.85
TEST_FFunction · 0.85
compatibleMethod · 0.85
validateFunction · 0.85

Calls 4

NothingClass · 0.85
ErrorFunction · 0.50
joinFunction · 0.50
stringifyFunction · 0.50

Tested by 4

TEST_FFunction · 0.68
operator==Function · 0.68
TESTFunction · 0.68
TEST_FFunction · 0.68