david.storch pointed this out while we were reading some code at my desk:
The call to std::abs(_pseudoRandom.nextInt32()) here could result in undefined behavior if _pseudoRandom.nextInt32() returns MIN_INT. Most compilers will probably do something reasonable in this situation. Many will probably just return MIN_INT, meaning that it's possible to get a negative cursor id.
- is duplicated by
-
SERVER-27796 Invariant failure in cluster_cursor_manager.cpp, numDeleted == 1
- Closed