Diff
Not logged in

Differences From:

File src/verify.c part of check-in [dbda8d6ce9] - Initial check-in of m1 sources. by drh on 2007-07-21 14:10:57. [view]

To:

File src/verify.c part of check-in [75c476ccd1] - Work on network synchronization by drh on 2007-07-23 20:33:04. [view]

@@ -43,11 +43,13 @@
     fossil_panic("not a valid rid: %d", rid);
   }
   content_get(rid, &content);
   sha1sum_blob(&content, &hash);
-  blob_reset(&content);
+/*  blob_reset(&content); */
   if( blob_compare(&uuid, &hash) ){
-    fossil_panic("hash of rid %d does not match its uuid", rid);
+printf("content=[%s]\n", blob_str(&content));
+    fossil_panic("hash of rid %d (%b) does not match its uuid (%b)",
+                  rid, &hash, &uuid);
   }
   blob_reset(&uuid);
   blob_reset(&hash);
 }