It looks like the warning was introduced via SERVER-24071.
src/mongo/s/chunk_manager.cpp:199:34: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move] _chunkRangeMap = std::move(_constructRanges(_chunkMap)); ^ src/mongo/s/chunk_manager.cpp:199:34: note: remove std::move call here _chunkRangeMap = std::move(_constructRanges(_chunkMap)); ^~~~~~~~~~ ~ 1 error generated.
- is duplicated by
-
SERVER-24161 pessimizing move
- Closed
- is related to
-
SERVER-24071 Introduce ChunkRange class
- Closed