summaryrefslogtreecommitdiffstats
path: root/xlators/features/shard/src/shard-messages.h
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2018-04-12 15:47:00 +0530
committerKrutika Dhananjay <kdhananj@redhat.com>2018-06-20 15:14:56 +0530
commit0751039eadb23b8658423477aa81964b339b4f5e (patch)
treebd09f83a94840bfd8b8e8d02b80d5bc1666ed57d /xlators/features/shard/src/shard-messages.h
parentcc2f2e7bfef6ca47e740c5ee6b4665ec2880f860 (diff)
features/shard: Perform shards deletion in the background
A synctask is created that would scan the indices from .shard/.remove_me, to delete the shards associated with the gfid corresponding to the index bname and the rate of deletion is controlled by the option features.shard-deletion-rate whose default value is 100. The task is launched on two accounts: 1. when shard receives its first-ever lookup on the volume 2. when a rename or unlink deleted an inode Change-Id: Ia83117230c9dd7d0d9cae05235644f8475e97bc3 updates: bz#1568521 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Diffstat (limited to 'xlators/features/shard/src/shard-messages.h')
-rw-r--r--xlators/features/shard/src/shard-messages.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/features/shard/src/shard-messages.h b/xlators/features/shard/src/shard-messages.h
index 6545f814a87..1f0378b20df 100644
--- a/xlators/features/shard/src/shard-messages.h
+++ b/xlators/features/shard/src/shard-messages.h
@@ -25,7 +25,7 @@
GLFS_MSGID(SHARD,
SHARD_MSG_BASE_FILE_LOOKUP_FAILED,
- SHARD_MSG_DICT_SET_FAILED,
+ SHARD_MSG_DICT_OP_FAILED,
SHARD_MSG_DOT_SHARD_NODIR,
SHARD_MSG_FD_CTX_SET_FAILED,
SHARD_MSG_INODE_CTX_GET_FAILED,
@@ -43,7 +43,9 @@ GLFS_MSGID(SHARD,
SHARD_MSG_FOP_NOT_SUPPORTED,
SHARD_MSG_INVALID_FOP,
SHARD_MSG_MEMALLOC_FAILED,
- SHARD_MSG_FOP_FAILED
+ SHARD_MSG_FOP_FAILED,
+ SHARD_MSG_SHARDS_DELETION_FAILED,
+ SHARD_MSG_SHARD_DELETION_COMPLETED
);
#endif /* !_SHARD_MESSAGES_H_ */