]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Cleanup boost optionals 2547/head
authorWilliam A. Kennington III <william@wkennington.com>
Sun, 21 Sep 2014 05:52:31 +0000 (22:52 -0700)
committerWilliam A. Kennington III <william@wkennington.com>
Sun, 21 Sep 2014 08:20:46 +0000 (01:20 -0700)
Signed-off-by: William A. Kennington III <william@wkennington.com>
src/osd/ECBackend.cc
src/osd/ReplicatedPG.cc

index a87b5b4ec1df9a7908e8b924ba053ed9e26cd768..c386900a257297e3dec97633de64f390aee756bb 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 5e5510de7a4229774c3a875785b0ba441239be6b..79e86164caa19afd6b1b6778455f8baca87a1512 100644 (file)
@@ -5259,7 +5259,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();