Commit fbf816da authored by David Johnson's avatar David Johnson
Browse files

Bug fix: don't delete blobs that are still in use on a modify, doh.

parent a9f3a8a8
......@@ -3605,8 +3605,10 @@ sub UploadBlobs($$)
if ($update) {
foreach my $vblob_id (keys(%blobs)) {
my ($keep,$uuid,$filename) = @{$blobs{$vblob_id}};
DBQueryFatal("delete from blobs" .
" where exptidx=$idx and vblob_id='${vblob_id}'");
if (!$keep) {
DBQueryFatal("delete from blobs" .
" where exptidx=$idx and vblob_id='${vblob_id}'");
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment