On 2014年08月12日 10:33, Ruoyu wrote:
Hi gluster developers,Another case, in the file xlators/features/snapview-server/src/snapview-server.c, line 268. Both of the two branches are same. 268 if ((priv->num_snaps == 0) && 269 (snapcount != 0)) { 270 /* first time we are fetching snap list */ 271 dirents = GF_CALLOC (snapcount, sizeof (snap_dirent_t), 272 gf_svs_mt_dirents_t); 273 if (!dirents) { 274 gf_log (frame->this->name, GF_LOG_ERROR, 275 "Unable to allocate memory"); 276 errno = ENOMEM; 277 ret = -1; 278 goto unlock; 279 } 280 } else { 281 /* fetch snaplist dynamically at run-time */ 282 dirents = GF_CALLOC (snapcount, sizeof (snap_dirent_t), 283 gf_svs_mt_dirents_t); 284 if (!dirents) { 285 gf_log (frame->this->name, GF_LOG_ERROR, 286 "Unable to allocate memory"); 287 errno = ENOMEM; 288 ret = -1; 289 goto unlock; 290 } 291 } |
_______________________________________________ Gluster-devel mailing list Gluster-devel@xxxxxxxxxxx http://supercolony.gluster.org/mailman/listinfo/gluster-devel