X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FStorage%2FRevisionStore.php;h=db06afee7ecd47f874dc892bbcb5d77284857962;hb=d9ba7cd0050d531c4f016fda285793568fa133c7;hp=2140209c425dfbc0f470ee628274f6c1a825aa0f;hpb=423ba71f426a603f50198220f6d2caa3b1cf04e4;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Storage/RevisionStore.php b/includes/Storage/RevisionStore.php index 2140209c42..db06afee7e 100644 --- a/includes/Storage/RevisionStore.php +++ b/includes/Storage/RevisionStore.php @@ -132,6 +132,13 @@ class RevisionStore $this->logger = $logger; } + /** + * @return bool Whether the store is read-only + */ + public function isReadOnly() { + return $this->blobStore->isReadOnly(); + } + /** * @return bool */ @@ -252,7 +259,7 @@ class RevisionStore if ( $title ) { $this->logger->info( __METHOD__ . ' fell back to READ_LATEST and got a Title.', - [ 'trace' => wfDebugBacktrace() ] + [ 'trace' => wfBacktrace() ] ); return $title; } @@ -298,8 +305,8 @@ class RevisionStore } /** - * Insert a new revision into the database, returning the new revision ID - * number on success and dies horribly on failure. + * Insert a new revision into the database, returning the new revision record + * on success and dies horribly on failure. * * MCR migration note: this replaces Revision::insertOn * @@ -740,8 +747,6 @@ class RevisionStore if ( isset( $row->rev_text_id ) && $row->rev_text_id > 0 ) { $mainSlotRow->cont_address = 'tt:' . $row->rev_text_id; - } elseif ( isset( $row->ar_id ) ) { - $mainSlotRow->cont_address = 'ar:' . $row->ar_id; } if ( isset( $row->old_text ) ) {