Skip to content

Commit

Permalink
Remove verbose debugging statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
dacut committed Jun 16, 2016
1 parent 270e442 commit a44b781
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions c++-client/s3.cc
Original file line number Diff line number Diff line change
Expand Up @@ -977,9 +977,6 @@ void UBDS3Handler::run() {

if (poll_result > 0) {
// Event ready.
//stringstream msg;
//msg << "Thread " << std::this_thread::get_id() << " processing a message" << "\n";
//cerr << msg.str() << std::flush;

while (true) {
try {
Expand Down Expand Up @@ -1020,10 +1017,6 @@ void UBDS3Handler::handleUBDRequest() {

switch (m_message.ubd_msgtype) {
case UBD_MSGTYPE_READ:
cerr << "Thread " << std::this_thread::get_id()
<< ": read (first_sector=" << m_message.ubd_first_sector
<< ", nsectors=" << m_message.ubd_nsectors << ")" << endl;

if (length > m_buffer_size) {
try {
resizeBuffer(length);
Expand Down Expand Up @@ -1052,10 +1045,6 @@ void UBDS3Handler::handleUBDRequest() {
break;

case UBD_MSGTYPE_WRITE:
cerr << "Thread " << std::this_thread::get_id()
<< ": write (first_sector=" << m_message.ubd_first_sector
<< ", nsectors=" << m_message.ubd_nsectors << ")" << endl;

try {
m_volume->write(m_s3, offset, m_message.ubd_data, length);
m_message.ubd_status = length;
Expand All @@ -1074,10 +1063,6 @@ void UBDS3Handler::handleUBDRequest() {
break;

case UBD_MSGTYPE_DISCARD:
cerr << "Thread " << std::this_thread::get_id()
<< ": discard (first_sector=" << m_message.ubd_first_sector
<< ", nsectors=" << m_message.ubd_nsectors << ")" << endl;

try {
m_volume->trim(m_s3, offset, m_message.ubd_size);
m_message.ubd_status = length;
Expand All @@ -1096,10 +1081,6 @@ void UBDS3Handler::handleUBDRequest() {
break;

case UBD_MSGTYPE_FLUSH:
cerr << "Thread " << std::this_thread::get_id()
<< ": flush (first_sector=" << m_message.ubd_first_sector
<< ", nsectors=" << m_message.ubd_nsectors << ")" << endl;

m_message.ubd_status = length;
m_message.ubd_size = 0;
m_ubd.putReply(m_message);
Expand Down

0 comments on commit a44b781

Please sign in to comment.