From 552137f703aece81a2ebb210277c65ac2e5a1f99 Mon Sep 17 00:00:00 2001 From: anwleung Date: Sat, 3 Mar 2007 01:44:34 +0000 Subject: [PATCH] less crap in the output git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1166 29311d96-e01e-0410-9327-a35deaab8ce9 --- branches/aleung/security1/ceph/osd/OSD.cc | 34 ++++++++++++----------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/branches/aleung/security1/ceph/osd/OSD.cc b/branches/aleung/security1/ceph/osd/OSD.cc index b0dcaecf3bab3..1938fbab8a380 100644 --- a/branches/aleung/security1/ceph/osd/OSD.cc +++ b/branches/aleung/security1/ceph/osd/OSD.cc @@ -376,7 +376,7 @@ bool OSD::verify_cap(ExtCap *cap) { // have i already verified this cap? if (!cap_cache->prev_verified(cap->get_id())) { - cout << "Verifying an unseen capability" << endl; + //cout << "Verifying an unseen capability" << endl; // actually verify if (cap->verif_extcap(monmap->get_key())) { // cache the verification @@ -2884,14 +2884,15 @@ void OSD::op_read(MOSDOp *op)//, PG *pg) if (op->get_source().is_client()) { ExtCap *op_capability = op->get_capability(); assert(op_capability); - if (verify_cap(op_capability)) - cout << "OSD successfully verified a read capability" << endl; - else - cout << "OSD failed to verify a read capability" << endl; + assert(verify_cap(op_capability)); + //if (verify_cap(op_capability)) + //cout << "OSD successfully verified a read capability" << endl; + //else + //cout << "OSD failed to verify a read capability" << endl; } - else - cout << "Received some read with no cap from " << - op->get_source().type() << endl; + //else + //cout << "Received some read with no cap from " << + //op->get_source().type() << endl; } long r = 0; @@ -3241,15 +3242,16 @@ void OSD::op_modify(MOSDOp *op, PG *pg) && op->get_source().is_client()) { ExtCap *op_capability = op->get_capability(); assert(op_capability); - + assert(verify_cap(op_capability)); // have i already verified this cap? - if (verify_cap(op_capability)) - cout << "OSD successfully verified a write capability" << endl; - else - cout << "OSD failed to verify a write capability" << endl; - } - else - cout << "Received some write with no cap from " << op->get_source().type() << endl; + //if (verify_cap(op_capability)) + //cout << "OSD successfully verified a write capability" << endl; + //else + //cout << "OSD failed to verify a write capability" << endl; + } + //else + //cout << "Received some write with no cap from " << + //op->get_source().type() << endl; } // locked by someone else? -- 2.39.5