Info
Unchecked return value from library
The function returns a value that indicates an error condition. If this is not checked, the error condition may not be handled correctly. Value returned from a library function is not checked for errors before being used. This value may indicate an error condition.
/src/mongo/db/storage/named_pipe_posix.cpp:49: CHECKED_RETURN 134052 Calling "remove(this->_pipeAbsolutePath.c_str())" without checking return value. This library function may fail and return an error code.
Top User Comments
xgen-internal-githook commented on Fri, 30 Dec 2022 00:16:04 +0000:
Author:
{'name': 'Kevin Cherkauer', 'email': 'kevin.cherkauer@mongodb.com', 'username': 'kevin-cherkauer'}
Message: SERVER-72441 Named Pipes: Suppress misleading "error" message from SERVER-70970
Branch: master
https://github.com/mongodb/mongo/commit/d88e203be2a206ddb2de326f7ba1c970f50d084b
xgen-internal-githook commented on Thu, 15 Dec 2022 03:37:27 +0000:
Author:
{'name': 'Yoonsoo Kim', 'email': 'yoonsoo.kim@mongodb.com', 'username': 'yun-soo'}
Message: SERVER-70970 Check remove()'s return value
Branch: master
https://github.com/mongodb/mongo/commit/d72f7e7b51438fb975e29ede81ba4822848295a1
kyle.suarez commented on Mon, 31 Oct 2022 13:43:41 +0000:
The man page for remove(3) states
On success, zero is returned. On error, -1 is returned, and errno is set appropriately.