]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
NVMEDevice: Fix typo
authorHaomai Wang <haomai@xsky.com>
Wed, 6 Jan 2016 04:10:07 +0000 (12:10 +0800)
committerHaomai Wang <haomai@xsky.com>
Mon, 1 Feb 2016 14:00:45 +0000 (22:00 +0800)
Signed-off-by: Haomai Wang <haomai@xsky.com>
src/os/bluestore/NVMEDevice.cc

index bb25e5b75b90b2e6748ce80cfa1310428319f5d9..33d500d01981cd0a15ea2bb546a099ca0aba715c 100644 (file)
@@ -214,7 +214,7 @@ int SharedDriverData::try_get(const string &sn_tag, nvme_controller **c, string
 {
   Mutex::Locker l(lock);
   int r = 0;
-  if (init) {
+  if (!init) {
     r = rte_eal_init(sizeof(ealargs) / sizeof(ealargs[0]), (char **)(void *)(uintptr_t)ealargs);
     if (r < 0) {
       derr << __func__ << " failed to do rte_eal_init" << dendl;