repmgr: properly remove temporary directory created when cloning from Barman

This commit is contained in:
Ian Barwick
2016-08-31 13:37:17 +09:00
parent e87399afc1
commit 719ad3cf95

View File

@@ -3027,7 +3027,7 @@ stop_backup:
if (mode == barman)
{
/* In Barman mode, remove local_repmgr_directory */
rmdir(local_repmgr_directory);
rmtree(local_repmgr_directory, true);
}
switch(mode)