summaryrefslogtreecommitdiff
path: root/src/mongo/watchdog
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2020-09-09 21:32:04 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-15 00:42:05 +0000
commit58828b0ce9556ee9cb38c484d1226663a0dcd993 (patch)
treedfea448799d9bd4328114199a9767dd18d045be3 /src/mongo/watchdog
parent22a77301a5b63b9bb7ef6dd73eabb4865c63a921 (diff)
downloadmongo-58828b0ce9556ee9cb38c484d1226663a0dcd993.tar.gz
SERVER-43909 clarify and repair util/hex.h API
- hexblob namespace - Throwy hexblob::decode (nee fromHex) - StringData overloads of hex codec ops - add unsignedHex<T> and zeroPaddedHex<T>
Diffstat (limited to 'src/mongo/watchdog')
-rw-r--r--src/mongo/watchdog/watchdog.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongo/watchdog/watchdog.cpp b/src/mongo/watchdog/watchdog.cpp
index 4142dc3a8ba..ec3253d805e 100644
--- a/src/mongo/watchdog/watchdog.cpp
+++ b/src/mongo/watchdog/watchdog.cpp
@@ -430,10 +430,9 @@ void checkFile(OperationContext* opCtx, const boost::filesystem::path& file) {
"'{toHexLower_readBuffer_get_bytesRead}'",
"file_generic_string"_attr = file.generic_string(),
"nowStr_size"_attr = nowStr.size(),
- "toHexLower_nowStr_c_str_nowStr_size"_attr =
- toHexLower(nowStr.c_str(), nowStr.size()),
+ "toHexLower_nowStr_c_str_nowStr_size"_attr = hexblob::encodeLower(nowStr),
"toHexLower_readBuffer_get_bytesRead"_attr =
- toHexLower(readBuffer.get(), bytesRead));
+ hexblob::encodeLower(readBuffer.get(), bytesRead));
}
}
@@ -562,9 +561,9 @@ void checkFile(OperationContext* opCtx, const boost::filesystem::path& file) {
"'{toHexLower_readBuffer_get_bytesReadTotal}'",
"file_generic_string"_attr = file.generic_string(),
"nowStr_size"_attr = nowStr.size(),
- "toHexLower_nowStr_c_str_nowStr_size"_attr = toHexLower(nowStr.c_str(), nowStr.size()),
+ "toHexLower_nowStr_c_str_nowStr_size"_attr = hexblob::encodeLower(nowStr),
"toHexLower_readBuffer_get_bytesReadTotal"_attr =
- toHexLower(readBuffer.get(), bytesReadTotal));
+ hexblob::encodeLower(readBuffer.get(), bytesReadTotal));
}
if (close(fd)) {