From 45d70cc74828b636c0d3c8e388f5b111e1a563ad Mon Sep 17 00:00:00 2001 From: Aravinda VK Date: Fri, 7 Feb 2014 11:24:41 +0530 Subject: geo-rep: Consume Changelog History API Every time when geo-rep restarts it first does FS crawl using XCrawl and then switches to Changelog Mode. This is because changelog only had live API, that is we can get changes only after registering. Now this(http://review.gluster.org/#/c/6930/) patch introduces History API for changelogs. If history is available then geo-rep will use it instead of FS Crawl. History API returns TS till what time history is available for given start and end time. If TS < endtime then switch to FS Crawl. (History => FS Crawl => Live Changelog) If TS >= endtime, then switch directly to Changelog mode (History => Live Changelog) Change-Id: I4922f62b9f899c40643bd35720e0c81c36b2f255 Signed-off-by: Aravinda VK Reviewed-on: http://review.gluster.org/6938 Reviewed-by: Venky Shankar Reviewed-by: Humble Devassy Chirammal Tested-by: Gluster Build System --- geo-replication/syncdaemon/syncdutils.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'geo-replication/syncdaemon/syncdutils.py') diff --git a/geo-replication/syncdaemon/syncdutils.py b/geo-replication/syncdaemon/syncdutils.py index 822d919ecb1..d4ded39f562 100644 --- a/geo-replication/syncdaemon/syncdutils.py +++ b/geo-replication/syncdaemon/syncdutils.py @@ -488,3 +488,11 @@ def lstat(e): return ex.errno else: raise + + +class NoPurgeTimeAvailable(Exception): + pass + + +class PartialHistoryAvailable(Exception): + pass -- cgit