projects
/
dbsrgits/DBM-Deep.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
read_txn_slots has been moved into the FileHeader sector.
[dbsrgits/DBM-Deep.git]
/
lib
/
DBM
/
Deep
/
Engine
/
Sector
/
FileHeader.pm
diff --git
a/lib/DBM/Deep/Engine/Sector/FileHeader.pm
b/lib/DBM/Deep/Engine/Sector/FileHeader.pm
index
4a0870d
..
2cc2c65
100644
(file)
--- a/
lib/DBM/Deep/Engine/Sector/FileHeader.pm
+++ b/
lib/DBM/Deep/Engine/Sector/FileHeader.pm
@@
-193,5
+193,13
@@
sub request_sector {
return $loc;
}
+sub read_txn_slots {
+ my $self = shift;
+ my $e = $self->engine;
+ my $bl = $e->txn_bitfield_len;
+ my $num_bits = $bl * 8;
+ return split '', unpack( 'b'.$num_bits, $self->read( $e->trans_loc, $bl ) );
+}
+
1;
__END__