70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
rid = content_new(zUuid);
}
return rid;
}
/*
** Verify that an object is not a phantom. If the object is
** a phantom, output an error message and quick.
*/
static void vfile_verify_not_phantom(
int rid, /* The RID to verify */
const char *zFilename, /* Filename. Might be NULL */
const char *zUuid /* UUID. Might be NULL */
){
if( db_int(-1, "SELECT size FROM blob WHERE rid=%d", rid)<0
&& (zUuid==0 || !db_exists("SELECT 1 FROM shun WHERE uuid='%s'", zUuid)) ){
if( zFilename ){
fossil_fatal("content missing for %s", zFilename);
}else{
char *zUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", rid);
if( zUuid ){
fossil_fatal("content missing for [%.10s]", zUuid);
}else{
|
|
|
>
|
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
rid = content_new(zUuid);
}
return rid;
}
/*
** Verify that an object is not a phantom. If the object is
** a phantom, output an error message and quit.
*/
static void vfile_verify_not_phantom(
int rid, /* The RID to verify */
const char *zFilename, /* Filename. Might be NULL */
const char *zUuid /* UUID. Might be NULL */
){
if( db_int(-1, "SELECT size FROM blob WHERE rid=%d", rid)<0
&& (zUuid==0 || !db_exists("SELECT 1 FROM shun WHERE uuid='%s'",zUuid))
){
if( zFilename ){
fossil_fatal("content missing for %s", zFilename);
}else{
char *zUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", rid);
if( zUuid ){
fossil_fatal("content missing for [%.10s]", zUuid);
}else{
|