Marc,
It is not the same bug I fixed.
Can you try this path?
Jean-Louis
Marc Muehlfeld wrote:
Hi
Jean-Louis Martineau wrote Mon, 03 Jan 2011 07:15:43 -0800:
your patch fixed it for 3.2.0. But wasn't it applied to the sources of
3.2.1? This version is still having the bug
The patch was committed after the 3.2.1 release.
Are you sure, that the patch was really committed? *3.2.2* is still
having this issue:
$ amadmin KDD find | grep "OK FAIL Missing part"| head -3
2011-02-19 21:00:02 ... /home 4 KDD117 103 1/3 OK FAIL Missing part
2011-02-23 21:00:02 ... /home 6 KDD140 101 1/3 OK FAIL Missing part
2011-02-24 21:00:02 ... /home 7 KDD147 87 1/2 OK FAIL Missing part
2011-03-01 21:00:01 ... /home 2 KDD172 105 1/3 OK FAIL Missing part
2011-03-08 21:00:01 ... /home 4 KDD031 94 1/2 OK FAIL Missing part
Also I saw that the amount of this messages changes on what I query:
$ amadmin KDD find | grep "OK FAIL Missing part" | wc -l
6
$ amadmin KDD find genome | grep "OK FAIL Missing part" | wc -l
346
$ amadmin KDD version
build: VERSION="Amanda-3.2.2"
Regards,
Marc
diff --git a/server-src/find.c b/server-src/find.c
index b387a9d..cfe33d6 100644
--- a/server-src/find.c
+++ b/server-src/find.c
@@ -1012,6 +1012,17 @@ search_logfile(
host, disk, date, level);
find_result_t *new_output_find = g_new0(find_result_t, 1);
part_find = g_hash_table_lookup(part_by_dle, key);
+ maxparts = partnum;
+ if (maxparts < totalparts)
+ maxparts = totalparts;
+ for (a_part_find = part_find;
+ a_part_find;
+ a_part_find = a_part_find->next) {
+ if (maxparts < a_part_find->partnum)
+ maxparts = a_part_find->partnum;
+ if (maxparts < a_part_find->totalparts)
+ maxparts = a_part_find->totalparts;
+ }
new_output_find->timestamp = stralloc(date);
new_output_find->write_timestamp = stralloc(datestamp);
new_output_find->hostname=stralloc(host);