From: <ta...@us...> - 2010-06-24 22:32:03
|
Revision: 4777 http://gfarm.svn.sourceforge.net/gfarm/?rev=4777&view=rev Author: tatebe Date: 2010-06-24 22:31:57 +0000 (Thu, 24 Jun 2010) Log Message: ----------- if ncopy == 1, disable automatic file replica creation Modified Paths: -------------- gfarm2fs/trunk/replicate.c Modified: gfarm2fs/trunk/replicate.c =================================================================== --- gfarm2fs/trunk/replicate.c 2010-06-24 22:20:59 UTC (rev 4776) +++ gfarm2fs/trunk/replicate.c 2010-06-24 22:31:57 UTC (rev 4777) @@ -124,7 +124,7 @@ char *domain = ""; gfarm_error_t e; - if (param->ncopy <= 0 || param->copy_limit < 0) + if (param->ncopy < 2 || param->copy_limit < 0) return; e = update_schedule_info(domain); @@ -251,7 +251,7 @@ break; } } - return (n == ncopy ? GFARM_ERR_NO_ERROR : e); + return (e); } void This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |