my $self = shift;
my ($obj) = @_;
- return;
+ my $sector = $self->load_sector( $obj->_base_offset, 'refs' )
+ or return;
+
+ return $sector->get_classname;
}
sub make_reference {
# See whether or not we are storing ourselves to ourself.
# Write the sector as data in this reference (keyed by $key)
- my $value_sector = $self->load_sector( $tmpvar->_base_offset );
+ my $value_sector = $self->load_sector( $tmpvar->_base_offset, 'refs' );
$sector->write_data({
key => $key,
- key_md5 => $self->_apply_digest( $key ),
+# key_md5 => $self->_apply_digest( $key ),
value => $value_sector,
});
$value_sector->increment_refcount;
return 1;
}
-sub begin_work {
- my $self = shift;
- my ($obj) = @_;
-}
+sub begin_work { die "Transactions are not supported by this engine" }
+sub rollback { die "Transactions are not supported by this engine" }
+sub commit { die "Transactions are not supported by this engine" }
-sub rollback {
- my $self = shift;
- my ($obj) = @_;
-}
+sub supports {
+ shift;
+ my ($feature) = @_;
-sub commit {
- my $self = shift;
- my ($obj) = @_;
+ return if $feature eq 'transactions';
+ return;
}
-
1;
__END__