]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
OSD: modify n.cookie to op.notify.cookie 29418/head
authoryangjun <yangjun@cmss.chinamobile.com>
Wed, 31 Jul 2019 09:40:38 +0000 (17:40 +0800)
committeryangjun <yangjun@cmss.chinamobile.com>
Wed, 31 Jul 2019 09:48:18 +0000 (17:48 +0800)
In the condition of "CEPH_OSD_OP_NOTIFY", "n.cookie"should be "op.notify.cookie"
instead of "op.watch.cookie", it's easier to be understood.

Signed-off-by: yangjun <yangjun@cmss.chinamobile.com>
src/osd/PrimaryLogPG.cc

index d85ce1d3a633afcebfe8da908b599b2e8c0e02ef..5b6be10f60d0d2b10fe5ca126d03429ba15c1cef 100644 (file)
@@ -6221,7 +6221,7 @@ int PrimaryLogPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
        notify_info_t n;
        n.timeout = timeout;
        n.notify_id = osd->get_next_id(get_osdmap_epoch());
-       n.cookie = op.watch.cookie;
+       n.cookie = op.notify.cookie;
         n.bl = bl;
        ctx->notifies.push_back(n);