summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/storage_file_util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/storage_file_util.cpp')
-rw-r--r--src/mongo/db/storage/storage_file_util.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/storage/storage_file_util.cpp b/src/mongo/db/storage/storage_file_util.cpp
index dd47a85642d..2a457ccf3a5 100644
--- a/src/mongo/db/storage/storage_file_util.cpp
+++ b/src/mongo/db/storage/storage_file_util.cpp
@@ -42,6 +42,7 @@
#include <boost/filesystem/path.hpp>
+#include "mongo/logv2/log.h"
#include "mongo/util/file.h"
#include "mongo/util/log.h"
@@ -67,7 +68,7 @@ Status fsyncParentDirectory(const boost::filesystem::path& file) {
boost::filesystem::path dir = file.parent_path();
- LOG(1) << "flushing directory " << dir.string();
+ LOGV2_DEBUG(22289, 1, "flushing directory {dir_string}", "dir_string"_attr = dir.string());
int fd = ::open(dir.string().c_str(), O_RDONLY);
if (fd < 0) {
@@ -78,7 +79,8 @@ Status fsyncParentDirectory(const boost::filesystem::path& file) {
if (fsync(fd) != 0) {
int e = errno;
if (e == EINVAL) {
- warning() << "Could not fsync directory because this file system is not supported.";
+ LOGV2_WARNING(22290,
+ "Could not fsync directory because this file system is not supported.");
} else {
close(fd);
return {ErrorCodes::OperationFailed,