-
Type:
Improvement
-
Resolution: Done
-
Priority:
Minor - P4
-
Affects Version/s: None
-
Component/s: Internal Code
-
None
-
Fully Compatible
-
Sharding 5 06/26/16
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
The function stripTrailing() in src/mongo/util/mongoutils/str.h does not strip trailing characters from its input string; it strips all occurrences of characters in the 'chars' string from its input string.
The comment /** remove trailing chars in place */ is wrong.
This function is only used in one place that I could find, in some Windows-specific error reporting code in acquirePathLock() in src/mongo/db/instance.cpp.