Diff
Not logged in

Differences From:

File src/verify.c part of check-in [1245b42ba3] - Fix the test-verify command so that it ignores phantoms. by drh on 2007-08-01 15:13:52. [view]

To:

File src/verify.c part of check-in [edbb332d54] - The xfer mechanism has been completely reworked to better support delta compression and to require fewer round-trips. The wire protocol is roughly the same but is different enough that you will need to recompile before sync will work. by drh on 2007-08-10 02:59:52. [view]

@@ -44,17 +44,18 @@
   db_blob(&uuid, "SELECT uuid FROM blob WHERE rid=%d", rid);
   if( blob_size(&uuid)!=UUID_SIZE ){
     fossil_panic("not a valid rid: %d", rid);
   }
-  content_get(rid, &content);
-  sha1sum_blob(&content, &hash);
-  blob_reset(&content);
-  if( blob_compare(&uuid, &hash) ){
-    fossil_fatal("hash of rid %d (%b) does not match its uuid (%b)",
-                  rid, &hash, &uuid);
+  if( content_get(rid, &content) ){
+    sha1sum_blob(&content, &hash);
+    blob_reset(&content);
+    if( blob_compare(&uuid, &hash) ){
+      fossil_fatal("hash of rid %d (%b) does not match its uuid (%b)",
+                    rid, &hash, &uuid);
+    }
+    blob_reset(&hash);
   }
   blob_reset(&uuid);
-  blob_reset(&hash);
 }
 
 /*
 **