From: Adam C. Emerson Date: Thu, 19 Oct 2017 17:59:50 +0000 (-0400) Subject: kvstore_tool: Create default constructor X-Git-Tag: v13.0.1~481^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=87b4d1646e70a6deeede1933f229280075dc511c;p=ceph.git kvstore_tool: Create default constructor Clang4 does not recognize a constructor with all arguments defaulted as a default constructor in some circumstances. Signed-off-by: Adam C. Emerson --- diff --git a/src/tools/ceph_kvstore_tool.cc b/src/tools/ceph_kvstore_tool.cc index 90a8798b7fdc..2ba5d4aee2f4 100644 --- a/src/tools/ceph_kvstore_tool.cc +++ b/src/tools/ceph_kvstore_tool.cc @@ -39,9 +39,10 @@ class StoreTool #ifdef HAVE_LIBAIO struct Deleter { BlueStore *bluestore; - Deleter(BlueStore *store = nullptr) - : bluestore(store) - {} + Deleter() + : bluestore(nullptr) {} + Deleter(BlueStore *store) + : bluestore(store) {} void operator()(KeyValueDB *db) { if (bluestore) { bluestore->umount();