On 02/19/2013 12:47 PM, Anand Avati
wrote:
I think the 1st method where glusterfsd unlinks the file is ok. Because glusterd says statedump is successful or unsuccessful right after issuing the SIGUSR1 signal to the brick processes. Here the whole purpose of the new thread would be just to unlink the file. It just exits after unlinking the file. If glusterfsd itself unlinks the file, then there is no need for the new thread at all, as all it would be doing is get spawned, wait till the file gets unlinked by glusterfsd and then exit (without doing anything as informing the user about success/failure of statedump would have been done right after issuing SIGUSR1 signal to the brick process itself). Regards, Raghavendra Bhat
|