]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: initialize MDSlaveUpdate::waiter 36462/head
authorYan, Zheng <zyan@redhat.com>
Wed, 5 Aug 2020 06:44:35 +0000 (14:44 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 5 Aug 2020 06:48:59 +0000 (14:48 +0800)
introduced by backport commit 4273de4cfaf
"mds: preserve ESlaveUpdate::OP_PREPARE logevent before doing commit"

Fixes: https://tracker.ceph.com/issues/46831
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/Mutation.h

index 61a33c5ee6314942821f6532a4c04e196de34786..3177b1d412d97e86db71006df7361683f69fea54 100644 (file)
@@ -415,7 +415,7 @@ typedef boost::intrusive_ptr<MDRequestImpl> MDRequestRef;
 struct MDSlaveUpdate {
   int origop;
   bufferlist rollback;
-  Context *waiter;
+  Context *waiter = nullptr;
   set<CInode*> olddirs;
   set<CInode*> unlinked;
   MDSlaveUpdate(int oo, bufferlist &rbl) :