summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarren James <warren.james@mongodb.com>2022-09-27 14:30:47 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-09-27 15:34:58 +0000
commitd9396d167a6ceb8f43b0b9ac017e562c89bc236a (patch)
tree3c7dee508c2ad7ad0e8e37d78af635e7e1faaf38
parentfca4f3f22ef5073031c3bf9352ea4eb0ade30e6c (diff)
downloadmongo-d9396d167a6ceb8f43b0b9ac017e562c89bc236a.tar.gz
SERVER-63142 Add log file rotation status to start of new log
-rw-r--r--src/mongo/db/audit.cpp7
-rw-r--r--src/mongo/db/audit.h8
2 files changed, 15 insertions, 0 deletions
diff --git a/src/mongo/db/audit.cpp b/src/mongo/db/audit.cpp
index 4c320fed716..ce5f44285ca 100644
--- a/src/mongo/db/audit.cpp
+++ b/src/mongo/db/audit.cpp
@@ -273,6 +273,13 @@ void logUpdateCachedClusterParameter(Client* client,
invariant(client);
}
+void logRotateLog(Client* client,
+ const Status& logStatus,
+ const std::vector<Status>& errors,
+ const std::string& suffix) {
+ invariant(client);
+}
+
#endif
} // namespace audit
diff --git a/src/mongo/db/audit.h b/src/mongo/db/audit.h
index bfc7cee3794..106aca30e40 100644
--- a/src/mongo/db/audit.h
+++ b/src/mongo/db/audit.h
@@ -437,6 +437,14 @@ void logUpdateCachedClusterParameter(Client* client,
const BSONObj& oldValue,
const BSONObj& newValue);
+/**
+ * Logs details of log file being rotated out to the file that is being rotated
+ * in
+ */
+void logRotateLog(Client* client,
+ const Status& logStatus,
+ const std::vector<Status>& errors,
+ const std::string& suffix);
} // namespace audit
} // namespace mongo