summaryrefslogtreecommitdiffstats
path: root/xlators/features/changelog/src/changelog-messages.h
diff options
context:
space:
mode:
authorShwetha K Acharya <sacharya@redhat.com>2019-11-14 12:37:24 +0530
committerAmar Tumballi <amarts@gmail.com>2020-01-01 07:11:23 +0000
commitec3df84dcfd7ccda0a18fa75e3b425c090209adf (patch)
tree90301b3304d589c101f3831352e219f9564f1819 /xlators/features/changelog/src/changelog-messages.h
parentca3e5905ac02fb9c373ac3de10b44f061d04cd6f (diff)
features/changelog: Optimization in changelog
Problem: Currently changelog is written in one directory, which over time, results in very large changelog files. Solution: Seperate directory under the changelogs directory is created on daily basis following the format year/month/day. Updates: #154 Change-Id: I1cdabe33728a0ba1f298c8908bd8c323b1871bda Signed-off-by: Shwetha K Acharya <sacharya@redhat.com>
Diffstat (limited to 'xlators/features/changelog/src/changelog-messages.h')
-rw-r--r--xlators/features/changelog/src/changelog-messages.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/features/changelog/src/changelog-messages.h b/xlators/features/changelog/src/changelog-messages.h
index 134628596ae..a2eed0568fa 100644
--- a/xlators/features/changelog/src/changelog-messages.h
+++ b/xlators/features/changelog/src/changelog-messages.h
@@ -57,7 +57,7 @@ GLFS_MSGID(
CHANGELOG_MSG_NO_MEMORY, CHANGELOG_MSG_HTIME_STAT_ERROR,
CHANGELOG_MSG_HTIME_CURRENT_ERROR, CHANGELOG_MSG_BNOTIFY_COND_INFO,
CHANGELOG_MSG_NO_HTIME_CURRENT, CHANGELOG_MSG_HTIME_CURRENT,
- CHANGELOG_MSG_NEW_HTIME_FILE);
+ CHANGELOG_MSG_NEW_HTIME_FILE, CHANGELOG_MSG_MKDIR_ERROR);
#define CHANGELOG_MSG_BARRIER_FOP_FAILED_STR \
"failed to barrier FOPs, disabling changelog barrier"
@@ -73,6 +73,7 @@ GLFS_MSGID(
#define CHANGELOG_MSG_HTIME_CURRENT_ERROR_STR "Error extracting HTIME_CURRENT."
#define CHANGELOG_MSG_UNLINK_OP_FAILED_STR "error unlinking empty changelog"
#define CHANGELOG_MSG_RENAME_ERROR_STR "error renaming"
+#define CHANGELOG_MSG_MKDIR_ERROR_STR "unable to create directory"
#define CHANGELOG_MSG_BNOTIFY_INFO_STR \
"Explicit rollover changelog signaling bnotify"
#define CHANGELOG_MSG_BNOTIFY_COND_INFO_STR "Woke up: bnotify conditional wait"