From 06f383733f8b39e5d8528df370de4c9ef1110f7c Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Wed, 3 Feb 2016 15:17:53 +0800 Subject: [PATCH] bluestore/NVMEDevice: fix compiling error Signed-off-by: xie xingguo --- src/os/bluestore/NVMEDevice.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/bluestore/NVMEDevice.cc b/src/os/bluestore/NVMEDevice.cc index 9d0eb63a603..a1b2c68146f 100644 --- a/src/os/bluestore/NVMEDevice.cc +++ b/src/os/bluestore/NVMEDevice.cc @@ -511,7 +511,7 @@ void io_complete(void *t, const struct nvme_completion *completion) Task *task = static_cast(t); IOContext *ctx = task->ctx; SharedDriverData *driver = task->device->get_driver(); - driver->inflight_ops.dec(); + int left = driver->inflight_ops.dec(); utime_t lat = ceph_clock_now(g_ceph_context); lat -= task->start; if (task->command == IOCommand::WRITE_COMMAND) { -- 2.47.3