]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rbd-nbd: initialize quiesce state variable
authorMykola Golub <mgolub@suse.com>
Sat, 12 Sep 2020 09:20:40 +0000 (10:20 +0100)
committerMykola Golub <mgolub@suse.com>
Sat, 12 Sep 2020 17:16:51 +0000 (18:16 +0100)
Signed-off-by: Mykola Golub <mgolub@suse.com>
src/tools/rbd_nbd/rbd-nbd.cc

index e39c2eb31a88ccde3620973a33f8189cb4074479..7e48a7da92d5bdb61cc3b362555e1dbb9094899b 100644 (file)
@@ -170,7 +170,6 @@ public:
     , reader_thread(*this, &NBDServer::reader_entry)
     , writer_thread(*this, &NBDServer::writer_entry)
     , quiesce_thread(*this, &NBDServer::quiesce_entry)
-    , started(false)
   {
     std::vector<librbd::config_option_t> options;
     image.config_list(&options);
@@ -504,8 +503,8 @@ signal:
     }
   } reader_thread, writer_thread, quiesce_thread;
 
-  bool started;
-  bool quiesce;
+  bool started = false;
+  bool quiesce = false;
 
 public:
   void start()