]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/crimson: default bind to 127.0.0.1 for perf 28913/head
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 8 Jul 2019 11:36:00 +0000 (19:36 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Mon, 8 Jul 2019 14:19:18 +0000 (22:19 +0800)
Async-messenger's accepting in v2 will fail if it binds to a blank ip.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/test/crimson/perf_async_msgr.cc
src/test/crimson/perf_crimson_msgr.cc

index 0b2de1d11dcf4535a726f0e63db9a568920a549f..77ffcee0a119be182385d16b48461f46d504a4f4 100644 (file)
@@ -90,7 +90,7 @@ int main(int argc, char** argv)
   po::options_description desc{"Allowed options"};
   desc.add_options()
     ("help,h", "show help message")
-    ("addr", po::value<std::string>()->default_value("v1:0.0.0.0:9010"),
+    ("addr", po::value<std::string>()->default_value("v1:127.0.0.1:9010"),
      "server address")
     ("bs", po::value<unsigned>()->default_value(0),
      "server block size")
index d381412436e553b117855f8b96778958af39a091..1b4170f127a855c206ac4a335a7b0247a481e496 100644 (file)
@@ -702,7 +702,7 @@ int main(int argc, char** argv)
   app.add_options()
     ("mode", bpo::value<unsigned>()->default_value(0),
      "0: both, 1:client, 2:server")
-    ("addr", bpo::value<std::string>()->default_value("v1:0.0.0.0:9010"),
+    ("addr", bpo::value<std::string>()->default_value("v1:127.0.0.1:9010"),
      "server address")
     ("ramptime", bpo::value<unsigned>()->default_value(5),
      "seconds of client ramp-up time")