int tempsize, sd;
int i;
char *dupeptr, ctrl, response;
-#ifndef DEBUG
+#ifdef DEBUG
printf("%s-> Start; backup mid:%s\n", __func__, midtoIPString(mid));
#endif
#endif
if(response != DUPLICATION_COMPLETE) {
-#ifndef DEBUG
+#ifdef DEBUG
printf("%s -> DUPLICATION_FAIL\n",__func__);
#endif
exit(-1);
return -1;
} else {
-#ifndef DEBUG
+#ifdef DEBUG
printf("%s -> Pmid = %s\n",__func__,midtoIPString(pmid));
#ifdef RECOVERY
printf("%s -> Bmid = %s\n",__func__,midtoIPString(bmid));
for(i = 0;i < numoid; i++) {
oid = oidarry[i];
-#ifndef DEBUG
+#ifdef DEBUG
printf("%s -> oid[%d] = %d\n",__func__,i,oidarry[i]);
#endif
*((unsigned int *)(&msg[1] + size)) = oid;
int objIsFound = 0, index = -1;
unsigned int i;
void *ptr;
-#ifndef DEBUG
+#ifdef DEBUG
printf("%s -> oid = %d vesion = %d tid = %d\n",__func__,oid,version,tid);
#endif
int retval;
pthread_attr_t nattr;
- printf("%s -> oid : %u\n",__func__,oid);
+// printf("%s -> oid : %u\n",__func__,oid);
pthread_mutex_lock(&gclistlock);
threadcount++;