]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Cleanup boost optionals 3557/head
authorWilliam A. Kennington III <william@wkennington.com>
Sun, 21 Sep 2014 05:52:31 +0000 (22:52 -0700)
committerLoic Dachary <ldachary@redhat.com>
Sun, 1 Feb 2015 14:36:16 +0000 (15:36 +0100)
Signed-off-by: William A. Kennington III <william@wkennington.com>
(cherry picked from commit a53ead14c113047567177630b4906136a2109b65)

src/osd/ECBackend.cc
src/osd/ReplicatedPG.cc

index 29071dddedc64aa1073a391455f30c18e7f61048..70616457cc0b7ee45ffe7c149db2958267cface4 100644 (file)
@@ -81,7 +81,7 @@ ostream &operator<<(ostream &lhs, const ECBackend::read_result_t &rhs)
   lhs << "read_result_t(r=" << rhs.r
       << ", errors=" << rhs.errors;
   if (rhs.attrs) {
-    lhs << ", attrs=" << rhs.attrs;
+    lhs << ", attrs=" << rhs.attrs.get();
   } else {
     lhs << ", noattrs";
   }
index 2fd1b563fef0b42cae76f97aed1a3e9c95e0cdfd..9e5da1ffc80c731d7b7a9152cfb2cfcb070c56ea 100644 (file)
@@ -5271,7 +5271,10 @@ void ReplicatedPG::do_osd_op_effects(OpContext *ctx)
   for (list<OpContext::NotifyAck>::iterator p = ctx->notify_acks.begin();
        p != ctx->notify_acks.end();
        ++p) {
-    dout(10) << "notify_ack " << make_pair(p->watch_cookie, p->notify_id) << dendl;
+    if (p->watch_cookie)
+      dout(10) << "notify_ack " << make_pair(p->watch_cookie.get(), p->notify_id) << dendl;
+    else
+      dout(10) << "notify_ack " << make_pair("NULL", p->notify_id) << dendl;
     for (map<pair<uint64_t, entity_name_t>, WatchRef>::iterator i =
           ctx->obc->watchers.begin();
         i != ctx->obc->watchers.end();