rc = cursor->c_get( cursor, &key, &data, DB_SET );
if ( rc ) goto leave;
+
eh.bv.bv_val = buf;
eh.bv.bv_len = data.size;
rc = entry_header( &eh );
data.flags ^= DB_DBT_PARTIAL;
data.ulen = 0;
rc = cursor->c_get( cursor, &key, &data, DB_CURRENT );
- if ( rc != ENOMEM ) goto leave;
+ if ( rc != DB_BUFFER_SMALL ) goto leave;
/* Allocate a block and retrieve the data */
off = eh.data - eh.bv.bv_val;
data.flags ^= DB_DBT_PARTIAL;
data.ulen = 0;
rc = cursor->c_get( cursor, &key, &data, DB_CURRENT );
- if ( rc != ENOMEM ) goto leave;
+ if ( rc != DB_BUFFER_SMALL ) goto leave;
/* Allocate a block and retrieve the data */
eh.bv.bv_len = eh.nvals * sizeof( struct berval ) + data.size;