]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PGLog: only add entry to caller_ops in add() if reqid_is_indexed()
authorSamuel Just <sam.just@inktank.com>
Fri, 31 May 2013 20:44:39 +0000 (13:44 -0700)
committerSamuel Just <sam.just@inktank.com>
Fri, 31 May 2013 20:44:39 +0000 (13:44 -0700)
Fixes: #5216
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/osd/PG.h

index 676601121b259404f485a2eee9de2e20a7827dff..9446334bb53c5143b3df1af3160ed2815034eb65 100644 (file)
@@ -279,7 +279,8 @@ public:
 
       // to our index
       objects[e.soid] = &(log.back());
-      caller_ops[e.reqid] = &(log.back());
+      if (e.reqid_is_indexed())
+       caller_ops[e.reqid] = &(log.back());
     }
 
     void trim(ObjectStore::Transaction &t, hobject_t& oid, eversion_t s);