projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6fac16
)
Add CHECK for out-of-range minRequests
author
Tudor Bosman
<tudorb@fb.com>
Thu, 7 Mar 2013 15:45:16 +0000
(07:45 -0800)
committer
Jordan DeLong
<jdelong@fb.com>
Tue, 19 Mar 2013 00:08:25 +0000
(17:08 -0700)
Test Plan: async_io_test
Reviewed By: philipp@fb.com
FB internal diff:
D730100
folly/experimental/io/AsyncIO.cpp
patch
|
blob
|
history
diff --git
a/folly/experimental/io/AsyncIO.cpp
b/folly/experimental/io/AsyncIO.cpp
index 16473e7f00af3a8c416860ecff12cdafbbd91ddc..addcc7e177850323c2e654bf281cddba4968f9c7 100644
(file)
--- a/
folly/experimental/io/AsyncIO.cpp
+++ b/
folly/experimental/io/AsyncIO.cpp
@@
-154,6
+154,7
@@
void AsyncIO::submit(Op* op) {
Range<AsyncIO::Op**> AsyncIO::wait(size_t minRequests) {
CHECK(ctx_);
CHECK_EQ(pollFd_, -1) << "wait() only allowed on non-pollable object";
+ CHECK_LE(minRequests, pending_);
return doWait(minRequests, pending_);
}