change log error back to check when pipe read fail in notification queue
authorShijin Kong <shikong@fb.com>
Tue, 10 Nov 2015 23:06:52 +0000 (15:06 -0800)
committerfacebook-github-bot-4 <folly-bot@fb.com>
Tue, 10 Nov 2015 23:20:21 +0000 (15:20 -0800)
Summary: Revert D2632752

Reviewed By: afrind

Differential Revision: D2638974

fb-gh-sync-id: 43d8135421510db7840a99f3c197119a0fd26c09

folly/io/async/NotificationQueue.h

index be53e4954b9a040e725d236f898db4ebc5a2f9a9..9eee132bc7b6b2063d1e2479eed59dd54b251b1f 100644 (file)
@@ -511,9 +511,7 @@ class NotificationQueue {
     if (rc < 0) {
       // EAGAIN should pretty much be the only error we can ever get.
       // This means someone else already processed the only available message.
-      if (rc != EAGAIN) {
-        LOG(ERROR) << "non-EAGAIN error returned on pipe read: " << errno;
-      }
+      CHECK_EQ(errno, EAGAIN);
       return false;
     }
     assert(value == 1);