This commit was generated by cvs2svn to compensate for changes in r1077,
which included commits to RCS files with non-trunk default branches. git-svn-id: svn://10.65.10.50/trunk@1078 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
39536eafa0
commit
3d9f9e2c9f
@ -1252,18 +1252,22 @@ int S4FUNCTION b4r_brseek( B4BLOCK *b4, char *search_value, int len, long recno
|
||||
{
|
||||
if ( b4->cur_dup_cnt + bytes_same == len ) /* unless binary, for sure done */
|
||||
{
|
||||
/* in case of binary, we may not be done if values < blank */
|
||||
trail_cnt = x4trail_cnt( b4, b4->key_on ) ;
|
||||
if ( significant_bytes > trail_cnt + len ) /* significant bytes beyond the trail, so check binary */
|
||||
if ( len == original_len )
|
||||
done = 1 ;
|
||||
else /* in case of binary, we may not be done if values < blank */
|
||||
{
|
||||
if ( memcmp( b4->cur_pos + compare_len, search_value + len, key_len - trail_cnt ) < 0 ) /* binaries */
|
||||
done = 0 ;
|
||||
trail_cnt = x4trail_cnt( b4, b4->key_on ) ;
|
||||
if ( significant_bytes > trail_cnt + len ) /* significant bytes beyond the trail, so check binary */
|
||||
{
|
||||
if ( memcmp( b4->cur_pos + compare_len, search_value + len, key_len - trail_cnt ) < 0 ) /* binaries */
|
||||
done = 0 ;
|
||||
else
|
||||
done = 1 ;
|
||||
|
||||
}
|
||||
else
|
||||
done = 1 ;
|
||||
|
||||
}
|
||||
else
|
||||
done = 1 ;
|
||||
}
|
||||
|
||||
if ( done == 1 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user