Commit de186436 authored by Saikumar's avatar Saikumar

commented unnecessary printfs

parent 83c4a0ff
...@@ -103,7 +103,7 @@ void insert(string key, string value) { ...@@ -103,7 +103,7 @@ void insert(string key, string value) {
} }
string GET(string key) { string GET(string key) {
printf("GET function\n"); // printf("GET function\n");
pthread_mutex_lock(&cLock); pthread_mutex_lock(&cLock);
string ans = search(key); string ans = search(key);
pthread_mutex_unlock(&cLock); pthread_mutex_unlock(&cLock);
......
127.1.1.2 127.1.1.2
20000 20000
10 20
\ No newline at end of file \ No newline at end of file
...@@ -613,7 +613,7 @@ string GETT(char * key){ ...@@ -613,7 +613,7 @@ string GETT(char * key){
} }
else else
{ {
printf("%s = %s \n",key ,dh->key); // printf("%s = %s \n",key ,dh->key);
if((tt=strcmp(key,dh->key))==0) if((tt=strcmp(key,dh->key))==0)
{ {
char filename2[10]; char filename2[10];
...@@ -715,7 +715,7 @@ void PUTT(char *key,char *value){ ...@@ -715,7 +715,7 @@ void PUTT(char *key,char *value){
write(n,ts,257); write(n,ts,257);
close(n); close(n);
} }
printf("PUTT completed\n"); // printf("PUTT completed\n");
sem_post(&w); sem_post(&w);
} }
...@@ -733,7 +733,7 @@ struct n2 * checkfile(struct n2 *h2,char *s){ ...@@ -733,7 +733,7 @@ struct n2 * checkfile(struct n2 *h2,char *s){
else{ else{
// printf("%s = %s \n",h2->filename,s); // printf("%s = %s \n",h2->filename,s);
if(strcmp(h2->filename,s)==0){ if(strcmp(h2->filename,s)==0){
printf("if \n"); // printf("if \n");
return h2;} return h2;}
else{ else{
h2=h2->pointer; h2=h2->pointer;
...@@ -802,7 +802,7 @@ void pp(struct n1*r){ ...@@ -802,7 +802,7 @@ void pp(struct n1*r){
} }
pp(r->p1); pp(r->p1);
printf("%s\n",r->key); // printf("%s\n",r->key);
pp(r->p2); pp(r->p2);
} }
...@@ -810,7 +810,7 @@ void pp2(struct n1*r){ ...@@ -810,7 +810,7 @@ void pp2(struct n1*r){
if(r==NULL){ if(r==NULL){
return; return;
} }
printf("%s\n",r->key); // printf("%s\n",r->key);
pp2(r->p1); pp2(r->p1);
......
...@@ -52,7 +52,7 @@ void *respondToClient(void *args) { ...@@ -52,7 +52,7 @@ void *respondToClient(void *args) {
string key_string, value_string; string key_string, value_string;
switch(todo) { switch(todo) {
case '1': case '1':
// printf("GET :\n"); printf("GET :\n");
printf("Key: %s\n", key); printf("Key: %s\n", key);
// j = search(key); // j = search(key);
// printf("j=%d\n", j); // printf("j=%d\n", j);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment