gettimeofday( theStartTime, NULL );
#endif
}
-#if DEBUG
+#if SSDEBUG
struct timeval *starttime = NULL;
#endif
void DumpIntoLog( const char * filename, const char * message ){
-#if DEBUG
+#if SSDEBUG
static pid_t thePID = getpid();
char newFn[ 1024 ] ={ 0 };
sprintf( newFn,"%s-%d.txt", filename, thePID );
exit(-1);
}
createSharedLibrary();
- #if DEBUG
+ #if SSDEBUG
starttime = &(sTheRecord->startTimeGlobal);
gettimeofday( starttime, NULL );
#endif
} else {
int status;
int retVal;
-#if DEBUG
+#if SSDEBUG
char mesg[ 1024 ] = { 0 };
sprintf( mesg, "The process id of child is %d and the process id of this process is %d and snapshot id is %d", forkedID, getpid(), snapshotid );
DumpIntoLog( "ModelSnapshot", mesg );
getcontext( &sTheRecord->mContextToRollback );
if( !sTemp ){
sTemp = 1;
-#if DEBUG
+#if SSDEBUG
DumpIntoLog( "ModelSnapshot", "Invoked rollback" );
#endif
exit( 0 );