]> git-server-git.apps.pok.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 18:08:47 +0000 (11:08 -0700)
committerSamuel Just <sam.just@inktank.com>
Fri, 31 May 2013 18:09:50 +0000 (11:09 -0700)
Fixes: #5216
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/osd/PGLog.h

index cfb17f16ce24b96d4873e105faed8f5df3a0db2a..2cd85692c87101e126393da4a26bdd2a42f6a1bd 100644 (file)
@@ -137,7 +137,8 @@ struct PGLog {
 
       // 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);