messagingfw/msgsrvnstore/server/src/msvindexadapter.cpp
changeset 47 d176b53f330f
parent 40 320ec5cd0227
equal deleted inserted replaced
40:320ec5cd0227 47:d176b53f330f
   430 
   430 
   431 #ifndef _NO_SERVER_LOGGING_
   431 #ifndef _NO_SERVER_LOGGING_
   432 	iServer.Log(_L("Cache initialized succesfully."));
   432 	iServer.Log(_L("Cache initialized succesfully."));
   433 #endif
   433 #endif
   434 
   434 
   435 	TMsvId tmpNextId = NULL;
   435 	TMsvId tmpNextId = 0;
   436 	iDbAdapter->GetMaxTMsvIdL(tmpNextId);
   436 	iDbAdapter->GetMaxTMsvIdL(tmpNextId);
   437 	iNextCreateId = (tmpNextId >= KFirstFreeEntryId)? (tmpNextId+1) : KFirstFreeEntryId;
   437 	iNextCreateId = (tmpNextId >= KFirstFreeEntryId)? (tmpNextId+1) : KFirstFreeEntryId;
   438 	
   438 	
   439 	iIdle = CIdle::NewL(CActive::EPriorityIdle);
   439 	iIdle = CIdle::NewL(CActive::EPriorityIdle);
   440 	CompleteSelf();
   440 	CompleteSelf();