persistentstorage/sql/SRC/Server/Compact/SqlCompact.cpp
branchRCL_3
changeset 6 5ffdb8f2067f
parent 0 08ec8eefde2f
child 9 667e88a979d7
equal deleted inserted replaced
2:6862383cf555 6:5ffdb8f2067f
   171 		__SQLASSERT(entry != NULL, ESqlPanicInternalError);
   171 		__SQLASSERT(entry != NULL, ESqlPanicInternalError);
   172 		if(entry)
   172 		if(entry)
   173 			{
   173 			{
   174 			if(entry->Release() == 0)
   174 			if(entry->Release() == 0)
   175 				{
   175 				{
   176 				iEntries.Remove(idx);
   176 				iEntries.Remove(idx);			
       
   177 #ifdef _DEBUG
       
   178 //This is used prevent the failure of the resource allocation checking for debug mode. 
       
   179 				if(iEntries.Count() == 0)
       
   180 				    {
       
   181                     iEntries.Reset();
       
   182 				    }
       
   183 #endif  
   177 				}
   184 				}
   178 			}
   185 			}
   179 		}
   186 		}
   180 	SQLCOMPACTOR_INVARIANT();
   187 	SQLCOMPACTOR_INVARIANT();
   181 	}
   188 	}