Convert updateChunkStatus to using a flush commit()
This will at least warn if an explicit transaction from a caller via begin() is active Change-Id: Id4198cb35368c0d92cf8abfde46c75ea09fd8f96
This commit is contained in:
parent
2cf39dd2e8
commit
feb03ba80a
1 changed files with 1 additions and 2 deletions
|
|
@ -237,7 +237,6 @@ class UploadFromChunks extends UploadFromFile {
|
||||||
$dbw = $this->repo->getMasterDb();
|
$dbw = $this->repo->getMasterDb();
|
||||||
// Use a quick transaction since we will upload the full temp file into shared
|
// Use a quick transaction since we will upload the full temp file into shared
|
||||||
// storage, which takes time for large files. We don't want to hold locks then.
|
// storage, which takes time for large files. We don't want to hold locks then.
|
||||||
$dbw->begin( __METHOD__ );
|
|
||||||
$dbw->update(
|
$dbw->update(
|
||||||
'uploadstash',
|
'uploadstash',
|
||||||
array(
|
array(
|
||||||
|
|
@ -248,7 +247,7 @@ class UploadFromChunks extends UploadFromFile {
|
||||||
array( 'us_key' => $this->mFileKey ),
|
array( 'us_key' => $this->mFileKey ),
|
||||||
__METHOD__
|
__METHOD__
|
||||||
);
|
);
|
||||||
$dbw->commit( __METHOD__ );
|
$dbw->commit( __METHOD__, 'flush' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue