Patch level :

Files correlati     :
Ricompilazione Demo : [ ]
Commento            : TFile_cache:
	corretto settaggio di _last_firm nel 1'
	costruttore e introdotto setkey prima della
	lettura nel motodo Fill


git-svn-id: svn://10.65.10.50/trunk@7303 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
augusto 1998-10-20 14:42:45 +00:00
parent 405b8c618c
commit 16b58fd72b

View File

@ -403,7 +403,7 @@ int TRecord_array::remove() const
///////////////////////////////////////////////////////////
TFile_cache::TFile_cache(TLocalisamfile *f , int key)
: _file(NULL), _key(key),
: _file(NULL), _key(key), _last_firm(-883),
_test_changes(FALSE), _last_read(0), _limit(0)
{
_filecode << f->num();
@ -574,6 +574,7 @@ long TFile_cache::fill()
const RecDes* recd = curr.rec_des(); // Descrizione del record della testata
const KeyDes& kd = recd->Ky[_key-1]; // Elenco dei campi della chiave
f.setkey(_key);
for (int err = f.first(); err == NOERR; err = f.next())
{
_code.cut(0);