diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2020-09-09 21:32:04 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-15 00:42:05 +0000 |
commit | 58828b0ce9556ee9cb38c484d1226663a0dcd993 (patch) | |
tree | dfea448799d9bd4328114199a9767dd18d045be3 /src/mongo/watchdog | |
parent | 22a77301a5b63b9bb7ef6dd73eabb4865c63a921 (diff) | |
download | mongo-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.cpp | 9 |
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)) { |