From 100cd090008b825d4cbe7d6bf4fbb88fdec8457c Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Tue, 3 Feb 2004 10:36:17 +0000 Subject: [PATCH] Do not renumber and entries if they are already identical SVN revision: 738 --- src/elogd.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index c68cc6d3..0a12ba1b 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.229 2004/02/03 10:36:17 midas + Do not renumber and entries if they are already identical + Revision 1.228 2004/02/03 10:10:50 midas Fixed missing logbook when language!=english @@ -9473,8 +9476,10 @@ void synchronize_logbook(LOGBOOK * lbs, BOOL bcron) } /* if message does not exist in cache but remotely, - messages were added on both sides, so resubmit local one and retrieve remote one */ - if (!exist_cache && exist_remote) { + messages were added on both sides, so resubmit local one and retrieve remote one + if messages are different */ + if (!exist_cache && exist_remote && + !equal_md5(md5_remote[i_remote].md5_digest, lbs->el_index[i_msg].md5_digest)) { /* find max id both locally and remotely */ max_id = 1;