]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Cleanup boost optionals 5039/head
authorWilliam A. Kennington III <william@wkennington.com>
Sun, 21 Sep 2014 05:52:31 +0000 (22:52 -0700)
committerNathan Cutler <ncutler@suse.com>
Mon, 22 Jun 2015 11:36:09 +0000 (13:36 +0200)
Signed-off-by: William A. Kennington III <william@wkennington.com>
(cherry picked from commit a53ead14c113047567177630b4906136a2109b65)

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

index 39e3429e9fbe2c92ad85331bc7792147e98b3b07..5235d4d6cd2d1674207c3f7da2ee97d4a67d94a9 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 c8fb01ebb77a57b6484f8c9a6862638793e53ef5..b04f8f4408857a40d50956b3d7a30f08ee71996a 100644 (file)
@@ -5065,7 +5065,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();