Fixed bug that deletes running on startup if backup started with -m running

This commit is contained in:
Olof Hagsand 2017-12-10 15:29:22 +01:00
parent 662495fff0
commit dd7f790193
6 changed files with 93 additions and 33 deletions

View file

@ -975,7 +975,7 @@ text_put(xmldb_handle xh,
/*! Copy database from db1 to db2
* @param[in] xh XMLDB handle
* @param[in] from Source database copy
* @param[in] from Source database
* @param[in] to Destination database
* @retval -1 Error
* @retval 0 OK
@ -995,7 +995,6 @@ text_copy(xmldb_handle xh,
/* XXX lock */
if (xmltree_cache){
/* 1. Free xml tree in "to"
*/
if ((de = hash_value(th->th_dbs, to, NULL)) != NULL){
if (de->de_xml != NULL){