Skip to content

Commit 2ba4234

Browse files
Don't commit updated DiskSpace to the db. If we want to do that, we can call Save. This prevents UI from hanging waiting for this update to happen
1 parent 1a8847f commit 2ba4234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/includes/Event.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ function DiskSpace( $new='' ) {
314314
$this->{'DiskSpace'} = folder_size($this->Path());
315315
if ($this->{'EndDateTime'} and $this->{'DiskSpace'}) {
316316
# Finished events shouldn't grow in size much so we can commit it to the db.
317-
dbQuery('UPDATE Events SET DiskSpace=? WHERE Id=?', array($this->{'DiskSpace'}, $this->{'Id'}));
317+
#dbQuery('UPDATE Events SET DiskSpace=? WHERE Id=?', array($this->{'DiskSpace'}, $this->{'Id'}));
318318
}
319319
}
320320
return $this->{'DiskSpace'};

0 commit comments

Comments
 (0)