]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
async: fixed the error "Cause: Cannot create lock on '/var/run/.rte_config'.", 12860/head
authorPan Liu <pan.liu@istuary.com>
Tue, 10 Jan 2017 10:49:20 +0000 (18:49 +0800)
committerPan Liu <pan.liu@istuary.com>
Tue, 10 Jan 2017 10:49:20 +0000 (18:49 +0800)
when invoke more than one osds in same server and enable dpdk.

Signed-off-by: Pan Liu <pan.liu@istuary.com>
src/msg/async/dpdk/dpdk_rte.cc

index cd814ed0a3129219faf3ebb5d5427dba8ac109b7..e03859a5d292acd62c21dd1a061c02d2a95e83cb 100644 (file)
@@ -91,6 +91,12 @@ namespace dpdk {
         args.push_back(string2vector("--no-huge"));
       }
 
+      std::string rte_file_prefix;
+      rte_file_prefix = "rte_";
+      rte_file_prefix += c->_conf->name.to_str();
+      args.push_back(string2vector("--file-prefix"));
+      args.push_back(string2vector(rte_file_prefix));
+
       std::vector<char*> cargs;
 
       for (auto&& a: args) {