}
$this->fileMetadata[$key] = [
- 'us_id' => $dbw->nextSequenceValue( 'uploadstash_us_id_seq' ),
'us_user' => $this->userId,
'us_key' => $key,
'us_orig_path' => $path,
. ' No user is logged in, files must belong to users' );
}
- $dbr = $this->repo->getSlaveDB();
+ $dbr = $this->repo->getReplicaDB();
$res = $dbr->select(
'uploadstash',
'us_key',
// sometimes reading from the master is necessary, if there's replication lag.
$dbr = $this->repo->getMasterDB();
} else {
- $dbr = $this->repo->getSlaveDB();
+ $dbr = $this->repo->getReplicaDB();
}
$row = $dbr->selectRow(