/** @todo Document.*/
function &getMaster( $cluster ) {
$lb =& $this->getLoadBalancer( $cluster );
- return $lb->getConnection( DB_MASTER, array() );
+ return $lb->getConnection( DB_MASTER );
}
/** @todo Document.*/
*/
function store( $cluster, $data ) {
$dbw = $this->getMaster( $cluster );
- #if( !$dbw ) {
- # return false;
- #}
$id = $dbw->nextSequenceValue( 'blob_blob_id_seq' );
$dbw->insert( $this->getTable( $dbw ),
array( 'blob_id' => $id, 'blob_text' => $data ),