From 3da1a1cf339da77e47f71b245d4cac3f9dc1da38 Mon Sep 17 00:00:00 2001 From: Dan Lambright Date: Sat, 27 Jun 2015 06:31:53 -0400 Subject: tier/ctr: Ignore creation of T file and Ctr Lookup heal improvememnts This is a back port of 11334 1) Ignore creation of T file in ctr_mknod 2) Ignore lookup for T file in ctr_lookup 3) Ctr_lookup: a. If the gfid and pgfid in empty dont record b. Decreased log level for multiple heal attempts c. Inode/File heal happens after an expiry period, which is configurable. d. Hardlink heal happens after an expiry period, which is configurable. > Change-Id: Id8eb5092e78beaec22d05f5283645081619e2452 > BUG: 1235269 > Signed-off-by: Joseph Fernandes > Reviewed-on: http://review.gluster.org/11334 > Tested-by: Gluster Build System > Reviewed-by: Dan Lambright > Tested-by: Dan Lambright Change-Id: Ia28a5cf975e41d318906f707deca447aaa35630f BUG: 1236288 Signed-off-by: Dan Lambright Reviewed-on: http://review.gluster.org/11446 Reviewed-by: Joseph Fernandes Tested-by: Joseph Fernandes Tested-by: Gluster Build System --- xlators/mgmt/glusterd/src/glusterd-volume-set.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'xlators/mgmt/glusterd/src/glusterd-volume-set.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c index 66ae63f20a7..d418f4ab34d 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c @@ -1910,6 +1910,30 @@ struct volopt_map_entry glusterd_volopt_map[] = { "updates by Change Time Recorder Xlator. When recording in a crash " "consistent way the data operations will experience more latency." }, + { .key = "features.ctr_hardlink_heal_expire_period", + .voltype = "features/changetimerecorder", + .value = "300", + .option = "ctr_hardlink_heal_expire_period", + .op_version = GD_OP_VERSION_3_7_2, + .description = "Defines the expiry period of in-memory " + "hardlink of an inode," + "used by lookup heal in Change Time Recorder." + "Once the expiry period" + "hits an attempt to heal the database per " + "hardlink is done and the " + "in-memory hardlink period is reset" + }, + { .key = "features.ctr_inode_heal_expire_period", + .voltype = "features/changetimerecorder", + .value = "300", + .option = "ctr_inode_heal_expire_period", + .op_version = GD_OP_VERSION_3_7_2, + .description = "Defines the expiry period of in-memory inode," + "used by lookup heal in Change Time Recorder. " + "Once the expiry period" + "hits an attempt to heal the database per " + "inode is done" + }, #endif /* USE_GFDB */ { .key = "locks.trace", .voltype = "features/locks", -- cgit